Vocabulary Service 1.0 (0.2) Specification

Overview

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

  1. Repository Information:
    • Available Repositories: Discovers all the repositories available
    • Get Namespaces: Connects to a repository and provides the namespaces
  2. Discovering interface:
    • Does subject exist: Service for discovering if a subject exists
    • Does relation exist: Service for discovering if a relation between subjects exists
    • Does concept with specified property exist: Service for discovering if concept with a specified property exist
    • Does subject where related object has specified property exist: Service for discovering if subject exists where its related object has a specified property
  3. Retrieve Concepts interface:
    • Retrieve concept by URI: Retrieve concept by URI
    • Retrieve concept by Prefixed Name: Service for discovering a concept by Prefix Name
    • Retrieve concept by Label : Service for discovering a concept by Label OR Label & Language
    • Retrieve concept by Label & Language: Service for discovering a concept by Label & Language
      • NOTE: If no language is selected, it should match any prefLabel or altLabel, regardless of language
    • Retrieve concept by Label & CollectionID : Service for discovering a concept by Label & CollectionID
    • Retrieve concept by Label & SchemeID: Service for discovering a concept by Label & SchemeID
    • Retrieve concept by Label Property: Service for discovering a concept by Property
    • Retrieve concept with Mappings (Chemical Symbol) : Service that provides mappings in a repository given the Chemical Symbol.For example, if a looking for an occurrence of "Al", this will return URN's that map to the chemical symbol "Al"
    • Retrieve concept with Mappings (Preferred / Alternate Label) : Service that provides mappings to other commodities in a repository given the alternate or preferred label
      • NOTE: This query is specific to support Auscope Portal
    • Retrieve concept and relations (broader / narrower /related /exact match) : Get all narrower/broader/related concepts relative to the base concept
  4. ServiceVersionInfo: Provides statistics based on the svn revision numbers of the java classes.

Repository Information Interface:

Available repositories

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repoInfo
2 Result
 
<repositoryInfo>
  <repository>SYSTEM</repository>
  <repository>wdtf03.1</repository>
  <repository>nvcl-scalars</repository>
  <repository>commodity_vocab</repository>
  <repository>uom-harmonised</repository>
  <repository>gml-uom</repository>
  <repository>wdtf03-codelist</repository>
  <repository>geotime</repository>
  <repository>uom</repository>
  <repository>nvcl</repository>
</repositoryInfo>

Get Namespaces

Repository: 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=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>

Discovering Interface:

Does subject exist?

Repository: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=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: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=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>

Does concept with specified property exist?

Repository:wdtf03.1
1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=wdtf03.1&property=dc%3Aidentifier&property_value=%22km%22
2 SPARQL Query doesConceptByPropertyExist(?concept "dc:identifier" "km")
 
ASK {?concept dc:identifier "km"}
3 Result
 
<sparql>
  <results>
    <boolean>true</boolean>
  </results>
</sparql>

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 mapping:<http://csiro.au/wirada/>
PREFIX unit:<http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-units/>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX param:<http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-parameters/>
PREFIX dc:<http://purl.org/dc/elements/1.1/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX interpolation:<http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-interpolation-codes/>
ASK {param:Evaporation_mm skos:related ?x . ?x dc:identifier "mm"}
3 Result
 
<sparql>
  <results>
    <boolean>true</boolean>
  </results>
</sparql>

Retrieve Concept Interface:

Retrieve Concept By URI

Repository: 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=nvcl&id=http%3A%2F%2Fwww.auscope.org%2Fontology%2Fvocabs%2Fnvcl%2F0.4%2309ddcae4-2b5f-4c8f-b13c-8038c37fcd40
2 SPARQL Query getConceptByURI("http://www.auscope.org/ontology/vocabs/nvcl/0.3#09ddcae4-2b5f-4c8f-b13c-8038c37fcd40")
 
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>

Retrieve Concept By Prefixed Name

Repository: 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=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>

Retrieve Concept By Label

Repository: 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=nvcl&label=Sulphates
2 SPARQL Query getConceptByLabel("Sulphates")
 
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>

Retrieve Concept By Label & Language

Repository: 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=nvcl&label=Sulfates&language=en
2 SPARQL Query getConceptByLabelInLanguage("Sulfates","en")
 
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>

Retrieve Concept By Label & CollectionID

Repository: 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=nvcl&label=Sulfates&collectionId=nvcl%3A20ac947d-6e82-4b67-a704-607851bb590d
2 SPARQL Query getConceptByLabelInCollection("Sulfates", "nvcl:20ac947d-6e82-4b67-a704-607851bb590d")
 
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>

Retrieve Concept By Label & SchemeID

Repository: 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=nvcl&label=Sulfates&inSchemId=nvcl%3Aeabbb93b-f756-41cf-b64c-b35cca5de955
2 SPARQL Query getConceptByLabelInConceptScheme("Sulfates", "nvcl:eabbb93b-f756-41cf-b64c-b35cca5de955")
 
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>

Retrieve Concept By Property

Repository:wdtf03.1

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=wdtf03.1&property1=dc%3Aidentifier&property_value1=%22km%22
2 SPARQL Query getConceptByProperty("dc:identifier='km'","nvcl:85980205-c8cc-4635-8151-fa26735479c8") Jackie - I just added a missing argument - is this correct?
 
DESCRIBE ?concept WHERE 
{ ?concept dc:identifier "km" }
3 Result
 
<rdf:RDF>
<skos:Concept rdf:about="http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-units/Kilometres">
   <dc:identifier>km</dc:identifier>
   <skos:prefLabel xml:lang="en">Kilometres</skos:prefLabel>
   <skos:broader rdf:resource="http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-units/UnitOfMeasure"/>
   <skos:inScheme rdf:resource="http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-units/Scheme"/>
</skos:Concept>
<rdf:Description rdf:about="http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-parameters/WindRun_km">
  <skos:related rdf:resource="http://www.bom.gov.au/std/water/xml/wio0.2/property/wdtf-units/Kilometres"/>
</rdf:Description>
</rdf:RDF>

Retrieve Concept and Relations

Repository:geotime

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=geotime&pref_label=Cretaceous
2 SPARQL Query getConceptAndRelations("Cretaceous")
 
SELECT DISTINCT $concept1 $relation1 WHERE  
{ ?concept skos:prefLabel "Cretaceous"@en .
$concept $relation1 $concept1 . 
FILTER ( $relation1 = skos:broader || $relation1 = skos:narrower || $relation1 = skos:related || $relation1 = skos:exactMatch) }|
3 Result
 
<sparql>
<head>
  <variable name="concept1"/>
  <variable name="relation1"/>
</head>
<results>
  <result>
   <binding name="concept1">
     <uri>urn:cgi:classifier:ICS:StratChart:2008:Mesozoic</uri>
   </binding>
   <binding name="relation1">
     <uri>http://www.w3.org/2004/02/skos/core#broader</uri>
   </binding>
</result>
<result>
   <binding name="concept1">
     <uri>urn:cgi:classifier:ICS:StratChart:2008:UpperCretaceous</uri>
   </binding>
   <binding name="relation1">
     <uri>http://www.w3.org/2004/02/skos/core#narrower</uri>
   </binding>
</result>
<result>
   <binding name="concept1">
     <uri>urn:cgi:classifier:ICS:StratChart:2008:LowerCretaceous</uri>
   </binding>
   <binding name="relation1">
     <uri>http://www.w3.org/2004/02/skos/core#narrower</uri>
   </binding>
</result>
</results>
</sparql>

Retrieve Concept Mappings - Chemical Symbol

Repository:commodity vocabularies

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=commodity_vocabČation=Al
2 SPARQL Query getSpecificConcept_1("Al")
 
SELECT DISTINCT $conceptMatch  WHERE 
{{$conceptMatch skos:notation $notation.}
FILTER regex(str($notation), \"^Al$\").}

3 Result
 
<sparql>
<head>
  <variable name="conceptMatch"/>
</head>
  <results>
   <result>
   <binding name="conceptMatch">
     <uri>urn:cgi:classifier:GA:commodity:Al</uri>
   </binding>
</result>
<result>
   <binding name="conceptMatch">
     <uri>urn:cgi:classifier:GSV:commodity:Al</uri>
   </binding>
</result>
<result>
   <binding name="conceptMatch">
     <uri>urn:cgi:classifier:GSWA:commodity:Al</uri>
   </binding>
</result>
<result>
   <binding name="conceptMatch">
     <uri>urn:cgi:classifier:PIRSA:commodity:Al</uri>
   </binding>
</result>
</results>
</sparql>

Retrieve Concept Mappings - Preferred/Alternate Label

Repository:commodity vocabularies

1 HTTP Request http://auscope-services-test.arrc.csiro.au/vocab-service/query?repository=commodity_vocab&preflabel=Zinc
2 SPARQL Query getSpecificConcept("Zinc")
 
DESCRIBE ?matchedConcept 
WHERE {
{$GAConcept skos:prefLabel "Zinc"@en .}
UNION
{ $GAConcept skos:altLabel "Zinc"@en .}
$GAConcept skos:inScheme <urn:cgi:classifierScheme:GA:commodity> 
$GAConcept skos:exactMatch ?matchedConcept .}
3 Result
 
<rdf:RDF>
<skos:Concept rdf:about="urn:cgi:classifier:PIRSA:commodity:SHZ">
   <skos:inScheme rdf:resource="urn:cgi:classifierScheme:PIRSA:commodity"/>
   <skos:definition>Scholzite</skos:definition>
   <skos:prefLabel xml:lang="en">Scholzite</skos:prefLabel>
   <skos:notation rdf:datatype="https://twiki.auscope.org/twiki/pub/Grid/MineralOccurrenceUserInterface/pirsa_commodities.xls">SHZ</skos:notation>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:GA:commodity:Zn"/>
</skos:Concept>
   <skos:Concept rdf:about="urn:cgi:classifier:PIRSA:commodity:Zn">
<skos:inScheme rdf:resource="urn:cgi:classifierScheme:PIRSA:commodity"/>
   <skos:definition>Zinc</skos:definition>
   <skos:prefLabel xml:lang="en">Zinc</skos:prefLabel>
   <skos:notation rdf:datatype="https://twiki.auscope.org/twiki/pub/Grid/MineralOccurrenceUserInterface/pirsa_commodities.xls">Zn</skos:notation>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:GA:commodity:Zn"/>
</skos:Concept>
<skos:Concept rdf:about="urn:cgi:classifier:GSWA:commodity:Zn">
   <skos:inScheme rdf:resource="urn:cgi:classifierScheme:GSWA:commodity"/>
   <skos:definition>Zinc (Zn)</skos:definition>
   <skos:prefLabel xml:lang="en">Zinc (Zn)</skos:prefLabel>
   <skos:notation rdf:datatype="https://twiki.auscope.org/twiki/pub/Grid/MineralOccurrenceUserInterface/gswa_commodities.xls">Zn</skos:notation>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:GA:commodity:Zn"/>
</skos:Concept>
<skos:Concept rdf:about="urn:cgi:classifier:GSV:commodity:Zn">
   <skos:inScheme rdf:resource="urn:cgi:classifierScheme:GSV:commodity"/>
   <skos:definition>Zinc</skos:definition>
   <skos:prefLabel xml:lang="en">Zinc</skos:prefLabel>
   <skos:notation rdf:datatype="https://twiki.auscope.org/twiki/pub/Grid/MineralOccurrenceUserInterface/gsv_commodities.xls">Zn</skos:notation>
   <skos:exactMatch>
<rdf:Description rdf:about="urn:cgi:classifier:GA:commodity:Zn">
   <skos:exactMatch rdf:resource="urn:cgi:classifier:PIRSA:commodity:SHZ"/>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:PIRSA:commodity:Zn"/>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:GSWA:commodity:Zn"/>
   <skos:exactMatch rdf:resource="urn:cgi:classifier:GSV:commodity:Zn"/>
</rdf:Description>
</skos:exactMatch>
</skos:Concept>
</rdf:RDF>
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).