org.w3.y2001.sw.Europe.skos
Interface ServiceBits


public interface ServiceBits

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.

Version:
$Revision: 1.7 $ .
Author:
Dave Beckett, Nikki Rogers, Alistair Miles.

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

getSupportedSemanticMappings

public Relation[] getSupportedSemanticMappings()
Return a list of all supported semantic mappings along with definitions


getSupportedSemanticMappingsByThesauri

public Relation[] getSupportedSemanticMappingsByThesauri(URI sourceThesaurus,
                                                         URI targetThesaurus)
Return a list of all supported semantic mappings along with definitions for a pair of thesauri

Parameters:
sourceThesaurus - The source thesaurus in a mapping.
targetThesaurus - The target thesaurus in a mapping.

getConceptMappings

public 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.

Parameters:
concept - The concept.
relation - The semantic mapping property.
targetThesaurus - The target thesaurus in a mapping.

getConceptMappingsByLabel

public 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.

Parameters:
prefLabel - The prefered label of the concept.
relation - The semantic mapping relation.
targetThesaurus - The target thesaurus in a mapping.

getAllConceptMappings

public 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

Parameters:
concept - The concept.
targetThesaurus - The target thesaurus in a mapping.

getAllConceptMappingsByLabel

public 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

Parameters:
prefLabel - The prefered label.
sourceThesaurus - The target thesaurus in a mapping.
targetThesaurus - The target thesaurus in a mapping.

RDFquery

public Binding[] RDFquery(java.lang.String modelReference,
                          java.lang.String query,
                          URI queryLanguage)
Return the result of an RDF query on the graph

Parameters:
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 bindings

getConceptAsSyntax

public java.lang.String getConceptAsSyntax(Concept concept,
                                           java.lang.String syntaxFormat)
Turn a concept into a syntax format

Parameters:
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..