Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To try this yourself, you can use the Linked Data Fragments Server of OpenVIVO, available here: http://openvivo.org/tpf


Curl

Curl can be used to issue triple pattern fragment queries and return JSON.  For example:

Code Block
curl http://openvivo.org/tpf/core

returns 169 lines of RF/XML, output truncated below

Code Block
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    ...
    xmlns:vivo="http://vivoweb.org/ontology/core#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#">
  <void:Dataset rdf:about="http://openvivo.org/tpf/core#dataset">
    <hydra:search rdf:parseType="Resource">
      <hydra:template>http://openvivo.org/tpf/core{?subject,predicate,object}</hydra:template>
      <hydra:mapping rdf:parseType="Resource">
        <hydra:variable>subject</hydra:variable>
        <hydra:property rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#subject"/>
      </hydra:mapping>
      <hydra:mapping rdf:parseType="Resource">
        <hydra:variable>predicate</hydra:variable>
        <hydra:property rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate"/>
      </hydra:mapping>
      <hydra:mapping rdf:parseType="Resource">
        <hydra:variable>object</hydra:variable>
        <hydra:property rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#object"/>
      </hydra:mapping>
    </hydra:search>
    <rdf:type rdf:resource="http://www.w3.org/ns/hydra/core#Collection"/>
    <void:subset>
      <hydra:Collection rdf:about="http://openvivo.org/tpf/core">
        <hydra:firstPage rdf:resource="http://openvivo.org/tpf/core?page=1"/>
        <hydra:nextPage rdf:resource="http://openvivo.org/tpf/core?page=2"/>
        <rdf:type rdf:resource="http://www.w3.org/ns/hydra/core#PagedCollection"/>
        <void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#integer"
        >5113025</void:triples>
        <hydra:totalItems rdf:datatype="http://www.w3.org/2001/XMLSchema#integer"
        >5113025</hydra:totalItems>
        <hydra:itemsPerPage rdf:datatype="http://www.w3.org/2001/XMLSchema#integer"
        >100</hydra:itemsPerPage>
      </hydra:Collection>
    </void:subset>
    <hydra:itemsPerPage rdf:datatype="http://www.w3.org/2001/XMLSchema#long"
    >100</hydra:itemsPerPage>
  </void:Dataset>
  <vivo:Company rdf:about="http://openvivo.org/a/grid.456931.c">
    <vivo:gridId>grid.456931.c</vivo:gridId>
    <rdf:type rdf:resource="http://purl.obolibrary.org/obo/BFO_0000001"/>
    <obo:ARG_2000028 rdf:resource="http://openvivo.org/a/grid.456931.c-vcard"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <j.0:mostSpecificType rdf:resource="http://vivoweb.org/ontology/core#Company"/>
    <rdf:type rdf:resource="http://purl.obolibrary.org/obo/BFO_0000002"/>
    <rdfs:label>Terra Viva Consultoria Ambiental (Brazil)</rdfs:label>
    <rdf:type rdf:resource="http://purl.obolibrary.org/obo/BFO_0000004"/>
    <vivo:hasContactInfo rdf:resource="http://openvivo.org/a/grid.456931.c-vcard"/>
    <skos:prefLabel>Terra Viva Consultoria Ambiental (Brazil)</skos:prefLabel>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Organization"/>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
  </vivo:Company>
  ...
</rdf:RDF>


Programmatic Access

References

...