Vocabulary Service 0.1 Specification

Overview

The following are the services that have been implemented, with a short description of their functionality:

  • Repository Information:
    • ServiceVersionInfo: Provides information regarding the revision numbers of the java classes.
    • Available Repositories: Discovers all the repositories available
    • Get Namespaces: Connects to a repository and provides the namespaces
  • Does the subject or relation exist:
    • Does resource exist: Service for discovering if a subject exists
    • Does relation exist: Service for discovering if a relation between subjects exists
  • Get concept by URI Or Prefixed Name: Service for discovering a concept by Prefix Name OR URI provided
  • Get concept by Label OR Label & Language: Service for discovering a concept by Label OR Label & Language
    • NOTE: If no language is selected, it should match any prefLabel or altLabel, regardless of language
  • Get concept by Label & CollectionID OR Label & SchemeID: Service for discovering a concept by Label & CollectionID OR Label & SchemeID
  • Does the subject exist where related object has a specified property: Service for discovering if a subject exists where its related object has a specified property
NOTE:

All services except for Repository Information are written in the SPARQL query syntax and their results are in RDF Format.

Vocabulary Services for Repository Information:

ServiceVersionInfo:

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?versionInfo
2 Result
 
<versionInfo>
  <file>
    <name>Query.java</name>
    <version>$Rev: 217 $</version>
  </file>
  <file>
    <name>Ontology.java</name>
    <version>$Rev: 217 $</version>
  </file>
</versionInfo>

Available repositories

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repoInfo
2 Result
 
<repositoryInfo>
  <repository>SYSTEM</repository>
  <repository>new-nvcl</repository>
  <repository>nvcl-scalars</repository>
  <repository>wdtf03</repository>
  <repository>tempo</repository>
  <repository>posc-units22-owl</repository>
  <repository>posc-units22-rdf-mmi</repository>
  <repository>posc-units22-rdf-muo</repository>
  <repository>posc-uom</repository>
  <repository>wdtf03-codelist</repository>
  <repository>geotime</repository>
  <repository>uom</repository>
  <repository>gml-uom</repository>
  <repository>wdtf03.1</repository>
  <repository>uom-harmonised</repository>
  <repository>commod_vocab</repository>
</repositoryInfo>

Get Namespaces

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?namespaceInfo=new-nvcl
2 Result
 
<namespaceInfo>
  <namespace>
    <prefix>owl2xml</prefix>
    <name>http://www.w3.org/2006/12/owl2-xml#</name>
  </namespace>
  <namespace>
    <prefix>nvcl</prefix>
    <name>http://www.auscope.org/ontology/vocabs/nvcl/0.3#</name>
  </namespace>
  <namespace>
    <prefix>xsd</prefix>
    <name>http://www.w3.org/2001/XMLSchema#</name>
  </namespace>
  <namespace>
    <prefix>rdfs</prefix>
    <name>http://www.w3.org/2000/01/rdf-schema#</name>
  </namespace>
  <namespace>
    <prefix>rdf</prefix>
    <name>http://www.w3.org/1999/02/22-rdf-syntax-ns#</name>
  </namespace>
  <namespace>
    <prefix>skos</prefix>
    <name>http://www.w3.org/2004/02/skos/core#</name>
  </namespace>
  <namespace>
    <prefix>owl</prefix>
    <name>http://www.w3.org/2002/07/owl#</name>
  </namespace>
</namespaceInfo>

Does the subject or relation exist:

Does subject exist?

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&subject=nvcl%3A85980205-c8cc-4635-8151-fa26735479c8
2 SPARQL Query getSubject("nvcl:85980205-c8cc-4635-8151-fa26735479c8")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
ASK {nvcl:85980205-c8cc-4635-8151-fa26735479c8 ?x ?y }
3 Result
 
<sparql>
  <results>
    <boolean>true</boolean>
  </results>
</sparql>

Does relation exist?

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&subject=nvcl%3A85980205-c8cc-4635-8151-fa26735479c8+&relation=skos%3Anarrower&object=nvcl%3A85980205-c8cc-4635-8151-fa26735479c8
2 SPARQL Query getRelation("nvcl:85980205-c8cc-4635-8151-fa26735479c8","skos:narrower","nvcl:85980205-c8cc-4635-8151-fa26735479c8")
 
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
ASK {nvcl:85980205-c8cc-4635-8151-fa26735479c8 skos:narrower nvcl:85980205-c8cc-4635-8151-fa26735479c8 } 
3 Result
 
<sparql>
  <results>
    <boolean>false</boolean>
  </results>
</sparql>

Get concept by URI Or Prefixed Name

Get Concept By URI

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&id=http%3A%2F%2Fwww.auscope.org%2Fontology%2Fvocabs%2Fnvcl%2F0.3%2309ddcae4-2b5f-4c8f-b13c-8038c37fcd40
2 SPARQL Query getConceptByURI("http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE <http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40>
3 Result
 
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>

Get Concept By Prefixed Name

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&qname=nvcl%3A09ddcae4-2b5f-4c8f-b13c-8038c37fcd40
2 SPARQL Query getConceptByQname("nvcl:09ddcae4-2b5f-4c8f-b13c-8038c37fcd40")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE {nvcl:09ddcae4-2b5f-4c8f-b13c-8038c37fcd40}
3 Result
 
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
</rdf:RDF>

Get concept by Label OR Label & Language

Get Concept By Label

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&label=Sulphates
2 SPARQL Query getConceptByLabel("Sulphates")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE $concept WHERE { {$concept skos:prefLabel $conceptName.} UNION {$concept skos:altLabel $conceptName.}FILTER regex(str($conceptName), "^Sulphates$")}
3 Result
 
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>

</rdf:RDF>

Get Concept By Label & Language

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&label=Sulfates&language=en
2 SPARQL Query getConceptByLabelInLanguage("Sulfates","en")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE $concept WHERE{ {$concept skos:prefLabel "Sulfates"@en} UNION {$concept skos:altLabel "Sulfates"@en}}
3 Result
 
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
</rdf:RDF>

Get concept by Label & CollectionID OR Label & SchemeID

Get Concept By Label & CollectionID

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&label=Sulfates&collectionId=nvcl%3A20ac947d-6e82-4b67-a704-607851bb590d
2 SPARQL Query getConceptByLabelInCollection("Sulfates", "nvcl:20ac947d-6e82-4b67-a704-607851bb590d")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE $concept 
WHERE {
{$concept skos:prefLabel $conceptName.} 
UNION 
{$concept skos:altLabel $conceptName.}
FILTER regex(str($conceptName), "^Sulfates$").nvcl:20ac947d-6e82-4b67-a704-607851bb590d skos:member $concept }
3 Result
 
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
</rdf:RDF>

Get Concept By Label & SchemeID

Repository: new-nvcl (https://svn.auscope.org/subversion/AuScopeNVCL/nvcl-vocabs/trunk/rdf-0.3.xml)

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=new-nvcl&label=Sulfates&inSchemId=nvcl%3Aeabbb93b-f756-41cf-b64c-b35cca5de955
2 SPARQL Query getConceptByLabelInConceptScheme("Sulfates", "nvcl:eabbb93b-f756-41cf-b64c-b35cca5de955")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
DESCRIBE $concept 
WHERE {
  {$concept skos:prefLabel $conceptName.} 
UNION 
  {$concept skos:altLabel $conceptName.}
FILTER regex(str($conceptName), "^Sulfates$").nvcl:eabbb93b-f756-41cf-b64c-b35cca5de955 skos:member $concept }
3 Result
 
<rdf:RDF
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:nvcl="http://www.auscope.org/ontology/vocabs/nvcl/0.3#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:skos="http://www.w3.org/2004/02/skos/core#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
<skos:Concept rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40">
   <skos:prefLabel xml:lang="de">Sulfate</skos:prefLabel>
   <skos:altLabel xml:lang="de">Sulphate</skos:altLabel>
   <skos:altLabel xml:lang="en">Sulfates</skos:altLabel>
   <skos:prefLabel xml:lang="en">Sulphates</skos:prefLabel>
   <skos:inScheme rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#eabbb93b-f756-41cf-b64c-b35cca5de955"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#20ac947d-6e82-4b67-a704-607851bb590d">
   <skos:member rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#45853539-e02e-43d4-8df9-47957def2bad">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#97aaa7ce-db4f-4726-82f3-f0fe2e08cf47">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#b2068d01-1504-41d2-a4fd-92eb7a5012fa">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#d7a3ad40-75b8-405c-9c62-633ce189781a">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.auscope.org/ontology/vocabs/nvcl/0.3#fba8e630-75d9-48f3-8f45-840e42579491">
   <skos:broader rdf:resource="http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40"/>
</rdf:Description>
</rdf:RDF>

Does the subject exist where related object has a specified property?

Repository: wdtf03.1
1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=wdtf03.1&subject=param%3AEvaporation_mm&predicate_1=skos%3Arelated&predicate_2=dc%3Aidentifier&object=%22mm%22
2 SPARQL Query getSubjectWithProperty("param:Evaporation_mm", "param:Evaporation_mm","dc:identifier", "mm")
 
PREFIX owl2xml:<http://www.w3.org/2006/12/owl2-xml#>
PREFIX nvcl:<http://www.auscope.org/ontology/vocabs/nvcl/0.3#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
ASK {param:Evaporation_mm skos:related ?x . ?x dc:identifier "mm"}
3 Result
 
<sparql>
  <results>
    <boolean>true</boolean>
  </results>
</sparql>
Note: The above queries with Label parameter will only filter skos:prefLabel and skos:altLabel. For filter skos:hiddenLabel, skos:notation in queries, queries need to be updated.

Coming soon Get related concepts - Implemented in Vocabulary Service 0.2

Get all narrower|broader concepts relative to the base concept.

The original use-case driving this is classification of geological units by age - when requesting 'Late Jurassic' in some cases we also want to get Tithonian, Kimmeridgian and Oxfordian, and in other cases we may want to get Jurassic, Mesozoic, Phanerozoic.

Depending on what search-radius we want, this may involve sequential requests.
Topic revision: r2 - 20 Feb 2012, SimonCox
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).