A class with SKOS API bits not yet added to the Service class.
This is a temporary class storing fragments of API that may eventually move into the Service class. Everything here is unstable.
The Mapping methods are the next likely parts to be added.
Method Summary | |
Mapping[] |
getAllConceptMappings(Concept concept,
URI targetThesaurus)
Return a list of all mappings from the source concept to the target thesaurus by any semantic mapping relation |
Mapping[] |
getAllConceptMappingsByLabel(java.lang.String prefLabel,
URI sourceThesaurus,
URI targetThesaurus)
Return a list of all mappings from the source identified by preferred label to the target thesaurus by any semantic mapping relation |
java.lang.String |
getConceptAsSyntax(Concept concept,
java.lang.String syntaxFormat)
Turn a concept into a syntax format |
Mapping[] |
getConceptMappings(Concept concept,
Relation relation,
URI targetThesaurus)
Return a list of all mappings from the source concept to the target thesaurus, according to the given semantic mapping relation. |
Mapping[] |
getConceptMappingsByLabel(java.lang.String prefLabel,
java.lang.String sourceThesaurus,
Relation relation,
URI targetThesaurus)
Return a list of all mappings from the concept identified by preferred label to the target thesaurus, according to the given semantic mapping relation. |
Relation[] |
getSupportedSemanticMappings()
Return a list of all supported semantic mappings along with definitions |
Relation[] |
getSupportedSemanticMappingsByThesauri(URI sourceThesaurus,
URI targetThesaurus)
Return a list of all supported semantic mappings along with definitions for a pair of thesauri |
Binding[] |
RDFquery(java.lang.String modelReference,
java.lang.String query,
URI queryLanguage)
Return the result of an RDF query on the graph |
Method Detail |
public Relation[] getSupportedSemanticMappings()
public Relation[] getSupportedSemanticMappingsByThesauri(URI sourceThesaurus, URI targetThesaurus)
sourceThesaurus
- The source thesaurus in a mapping.targetThesaurus
- The target thesaurus in a mapping.public Mapping[] getConceptMappings(Concept concept, Relation relation, URI targetThesaurus)
concept
- The concept.relation
- The semantic mapping property.targetThesaurus
- The target thesaurus in a mapping.public Mapping[] getConceptMappingsByLabel(java.lang.String prefLabel, java.lang.String sourceThesaurus, Relation relation, URI targetThesaurus)
prefLabel
- The prefered label of the concept.relation
- The semantic mapping relation.targetThesaurus
- The target thesaurus in a mapping.public Mapping[] getAllConceptMappings(Concept concept, URI targetThesaurus)
concept
- The concept.targetThesaurus
- The target thesaurus in a mapping.public Mapping[] getAllConceptMappingsByLabel(java.lang.String prefLabel, URI sourceThesaurus, URI targetThesaurus)
prefLabel
- The prefered label.sourceThesaurus
- The target thesaurus in a mapping.targetThesaurus
- The target thesaurus in a mapping.public Binding[] RDFquery(java.lang.String modelReference, java.lang.String query, URI queryLanguage)
modelReference
- URI of the graph model.query
- The query string.queryLanguage
- The URI identifying the query language.
STATUS: experimental
Intended to be similar to the RDF Net API
http://www.w3.org/Submission/2003/SUBM-rdf-netapi-20031002/
Query operation with the result format only allowing bindingspublic java.lang.String getConceptAsSyntax(Concept concept, java.lang.String syntaxFormat)
concept
- The concept.syntaxFormat
- The URI of the syntax format.
STATUS: experimental method
This allows the return format of the method to give
results in for example, SKOS-RDF/XML-ABBREV, SKOS-RDF/N3, ZThes
XML, XTM, etc..