public class SKOSModelImpl extends OWLModelImpl implements SKOSModel
OWLModelImpl.ARTLiteralIteratorImpl, OWLModelImpl.ARTResourceIteratorImpl
logger
baseRep
Constructor and Description |
---|
SKOSModelImpl(BaseRDFTripleModel baseRep) |
Modifier and Type | Method and Description |
---|---|
void |
addAltLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs)
adds an alternative label to concept
skosConcept |
void |
addAltLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs)
adds an alternative label to concept
skosConcept |
void |
addBroaderConcept(ARTURIResource skosConcept,
ARTURIResource broaderConcept,
ARTResource... graphs)
like
SKOSModel.addBroaderConcept(ARTURIResource, ARTURIResource, boolean, ARTResource...) with
cleanTopConcept set to false |
void |
addBroaderConcept(ARTURIResource skosConcept,
ARTURIResource broaderConcept,
boolean cleanTopConcept,
ARTResource... graphs)
sets
skosConcept to have broaderConcept as one of its broader conceptsthen, if cleanTopConcept is true, for each scheme in which broaderConcept appears, removes
skosConcept to be a topconcept for that scheme (as there is already broaderConcept in a higher position
in the tree) |
void |
addBroadMatch(ARTURIResource skosConcept,
ARTURIResource broaderMatchedConcept,
ARTResource... graphs)
adds a broad match between the two given concepts
|
void |
addChangeNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
adds a change note to
skosConcept |
void |
addChangeNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
adds a change note to
skosConcept |
void |
addCloseMatch(ARTURIResource skosConcept,
ARTURIResource closelyMatchedConcept,
ARTResource... graphs)
adds a close match between the two given concepts
|
void |
addConcept(String uri,
ARTURIResource broaderConcept,
ARTResource... graphs)
adds a new concept with given
uri to the default schema and stores it in named graphs
graphs |
void |
addConceptToScheme(ARTURIResource concept,
ARTURIResource skosScheme,
ARTResource... graphs)
adds concept
concept to scheme skosScheme under graphs graphs . |
void |
addConceptToScheme(String uri,
ARTURIResource broaderConcept,
ARTURIResource skosScheme,
ARTResource... graphs)
adds a new concept with given
uri to scheme skosScheme and stores it in named
graphs graphs |
void |
addConceptToSchemes(String uri,
ARTURIResource broaderConcept,
ARTURIResource... skosScheme)
adds a new concept with given
uri to all schemes in skosScheme storing it in
the MAINGRAPH |
void |
addDefinition(ARTURIResource skosConcept,
ARTLiteral def,
ARTResource... graphs)
adds a definition to
skosConcept |
void |
addDefinition(ARTURIResource skosConcept,
String def,
String lang,
ARTResource... graphs)
adds a definition to
skosConcept |
void |
addEditorialNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
adds an editorial note to
skosConcept |
void |
addEditorialNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
adds an editorial note to
skosConcept |
void |
addExactMatch(ARTURIResource skosConcept,
ARTURIResource exactlyMatchedConcept,
ARTResource... graphs)
adds an exact match between the two given concepts
|
void |
addExample(ARTURIResource skosConcept,
ARTLiteral example,
ARTResource... graphs)
adds an example to
skosConcept |
void |
addExample(ARTURIResource skosConcept,
String example,
String lang,
ARTResource... graphs)
adds an example to
skosConcept |
void |
addFirstToSKOSOrderedCollection(ARTURIResource skosConcept,
ARTResource skosCollection,
ARTResource... graphs)
adds skos concept
skosConcept as first element of skosOrderedCollection |
void |
addHiddenLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs)
adds an hidden label to concept
skosConcept |
void |
addHiddenLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs)
adds an hidden label to concept
skosConcept |
void |
addHistoryNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
adds an history note to
skosConcept |
void |
addHistoryNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
adds an history note to
skosConcept |
void |
addInPositionToSKOSOrderedCollection(ARTURIResource skosConcept,
int position,
ARTResource skosOrderedCollection,
ARTResource... graphs)
adds skos concept
skosConcept to skosOrderedCollection in position
position |
void |
addLastToSKOSOrderedCollection(ARTURIResource skosConcept,
ARTResource skosCollection,
ARTResource... graphs)
adds skos concept
skosConcept as last element of skosOrderedCollection |
void |
addNarrowerConcept(ARTURIResource skosConcept,
ARTURIResource narrowerConcept,
ARTResource... graphs)
set
skosConcept to have narrowerConcept as one of its narrower concepts |
void |
addNarrowMatch(ARTURIResource skosConcept,
ARTURIResource narrowerMatchedConcept,
ARTResource... graphs)
adds a narrow match between the two given concepts
|
void |
addNotation(ARTURIResource skosConcept,
ARTLiteral lit,
ARTResource... ngs)
add a value to a skos concept on the
skos:notation property |
void |
addNotation(ARTURIResource skosConcept,
String literalInfo,
ARTURIResource datatype,
ARTResource... ngs)
as for
SKOSModel.addNotation(ARTURIResource, ARTLiteral, ARTResource...) but automatically builds a
literal from the given string and with the given datatype |
void |
addNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
adds a note to
skosConcept |
void |
addNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
adds a note to
skosConcept |
void |
addRelatedConcept(ARTURIResource skosConcept,
ARTURIResource relatedConcept,
ARTResource... graphs)
set
skosConcept to have relatedConcept as one of its related concepts |
void |
addRelatedMatch(ARTURIResource skosConcept,
ARTURIResource relatelyMatchedConcept,
ARTResource... graphs)
adds a related match between the two given concepts
|
void |
addScopeNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
adds a scope note to
skosConcept |
void |
addScopeNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
adds a scope note to
skosConcept |
void |
addSKOSCollection(ARTURIResourceIterator conceptsIterator,
ARTResource... graphs)
adds all the skos concepts retrieved by
conceptsIterator to a new collection |
void |
addSKOSCollection(Collection<ARTURIResource> conceptsCollection,
ARTResource... graphs)
adds all the (existing) skos concepts collected in
conceptsCollection to a new SKOS
collection |
void |
addSKOSCollection(String url,
Collection<ARTURIResource> conceptsCollection,
ARTResource... graphs)
adds all the (existing) skos concepts collected in
conceptsCollection to a new SKOS
collection with given uri |
void |
addSKOSConceptScheme(ARTResource conceptScheme,
ARTResource... graphs)
adds a new conceptScheme
conceptScheme and stores it in named graphs graphs |
ARTURIResource |
addSKOSConceptScheme(String uri,
ARTResource... graphs)
adds a new conceptScheme with given
uri and stores it in named graphs graphs |
void |
addSKOSOrderedCollection(ARTURIResourceIterator conceptsIterator,
ARTResource... graphs)
adds all the skos concepts retrieved by
conceptsIterator to a new ordered collection in
the same order in which they are returned by the iterator |
void |
addSKOSOrderedCollection(ARTURIResource orderedCollection,
List<ARTURIResource> conceptsList,
ARTResource... graphs)
adds all the (existing) skos concepts listed in
conceptsList to a new SKOS ordered
collection orderedCollection |
void |
addSKOSOrderedCollection(List<ARTURIResource> conceptsList,
ARTResource... graphs)
adds all the (existing) skos concepts listed in
conceptsList to a new SKOS ordered
collection |
void |
deleteConcept(ARTURIResource skosConcept,
ARTResource... graphs)
remove
skosConcept and all information about it from graphs graphs |
void |
deleteScheme(ARTURIResource skosScheme,
boolean forceDeletingDanglingConcepts,
ARTResource... graphs)
this methods removes the scheme from the given graphs.
|
ARTURIResource |
getDefaultSchema()
these API allow for the definition of a schema, which is being edited/access by default when no
explicit schema is provided through access/write methods
|
ARTLiteral |
getNotation(ARTURIResource skosConcept,
ARTResource... graphs)
as for
SKOSModel.getNotation(ARTURIResource, ARTURIResource, ARTResource...) with datatype set to
null |
ARTLiteral |
getNotation(ARTURIResource skosConcept,
ARTURIResource datatype,
ARTResource... graphs)
get Notation for concept
skosConcept with given datatype |
OWLModel |
getOWLModel()
this method returns the OWL model owned by this SKOSModel
|
ARTLiteral |
getPrefLabel(ARTURIResource skosConcept,
String languageTag,
boolean inferred,
ARTResource... graphs)
returns the preferred label for concept
skosConcept for language expressed by ISO
languageTag |
boolean |
hasBroaderConcept(ARTURIResource skosConcept,
ARTURIResource broaderSkosConcept,
boolean transitive,
boolean inferred,
ARTResource... graphs)
checks whether
skosConcept has a broader concept: broaderSkosConcept |
boolean |
hasNarrowerConcept(ARTURIResource skosConcept,
ARTURIResource narrowerSkosConcept,
boolean transitive,
boolean inferred,
ARTResource... graphs)
checks whether
skosConcept has a narrower concept: narrowerSkosConcept |
int |
hasPositionInList(ARTResource skosResource,
ARTResource skosOrdCollection,
ARTResource... graphs)
as for
#hasPositionInList(ARTResource, ARTResource, boolean) with numbering starting from 1 |
boolean |
isConcept(ARTURIResource concept,
ARTResource... graphs)
tells if a given resource is a skos concept
|
boolean |
isInScheme(ARTURIResource skosConcept,
ARTURIResource skosScheme,
ARTResource... graphs)
tells whether concept
skosConcept is in scheme skosScheme |
boolean |
isMemberOfCollection(ARTResource skosResource,
ARTResource skosCollection,
ARTResource... graphs)
tells if given skos object is a member of
skosCollection . |
boolean |
isSKOSConceptScheme(ARTResource conceptScheme,
ARTResource... graphs)
tells if the provided resource is a conceptScheme in this model
|
boolean |
isTopConcept(ARTURIResource skosConcept,
ARTURIResource skosScheme,
ARTResource... graphs)
tells if
skosConcept is a topConcept in given skosScheme |
ARTURIResourceIterator |
listAllSchemes(ARTResource... graphs)
lists all the SKOS schemes
|
ARTURIResourceIterator |
listAllSchemesForConcept(ARTURIResource skosConcept,
ARTResource... graphs)
lists all the SKOS schemes to which given
skosConcept belongs |
ARTLiteralIterator |
listAltLabels(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
list all Alternative Labels for concept
skosConcept |
ARTLiteralIterator |
listAltLabels(ARTURIResource skosConcept,
String languageTag,
boolean inferred,
ARTResource... graphs)
list all Alternative Labels for concept
skosConcept with language given by
languageTag |
ARTURIResourceIterator |
listBroaderConcepts(ARTURIResource skosConcept,
boolean transitive,
boolean inference,
ARTResource... graphs)
list all concepts which are broader than concept
skosConcept The contract for this method is that it is assumed to retrieve both from skos:broader and inverse skos:narrower triples and remove duplicates in case both are being asserted |
ARTURIResourceIterator |
listBroadMatches(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts broadmatched by
skosConcept |
ARTLiteralIterator |
listChangeNotes(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all ChangeNotes for given
skosConcept |
ARTLiteralIterator |
listChangeNotes(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all ChangeNotes for given
skosConcept with language == |
ARTURIResourceIterator |
listCloseMatches(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts close-matched by
skosConcept |
ARTURIResourceIterator |
listCollectionResources(ARTResource skosCollection,
ARTResource... graphs)
lists all resources which are member of collection
skosCollection |
ARTURIResourceIterator |
listConcepts(boolean infer,
ARTResource... graphs)
lists all concepts declared in graphs
graphs as of rdf:type skos:concept |
ARTURIResourceIterator |
listConceptsInScheme(ARTURIResource skosScheme,
ARTResource... graphs)
lists all concepts belonging to the provided scheme
skosScheme |
ARTLiteralIterator |
listDefinitions(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all Definitions for given
skosConcept |
ARTLiteralIterator |
listDefinitions(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all Definitions for given
skosConcept with language == |
ARTLiteralIterator |
listEditorialNotes(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all EditorialNotes for given
skosConcept |
ARTLiteralIterator |
listEditorialNotes(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all EditorialNotes for given
skosConcept with language == |
ARTURIResourceIterator |
listExactMatches(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts exact-matched by
skosConcept |
ARTLiteralIterator |
listExamples(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all Examples for given
skosConcept |
ARTLiteralIterator |
listExamples(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all Examples for given
skosConcept with language == |
ARTLiteralIterator |
listHiddenLabels(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
list all Hidden Labels for concept
skosConcept |
ARTLiteralIterator |
listHiddenLabels(ARTURIResource skosConcept,
String languageTag,
boolean inferred,
ARTResource... graphs)
list all Hidden Labels for concept
skosConcept with language given by
languageTag |
ARTLiteralIterator |
listHistoryNotes(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all HistoryNotes for given
skosConcept |
ARTLiteralIterator |
listHistoryNotes(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all HistoryNotes for given
skosConcept with language == |
ARTURIResourceIterator |
listMatchingConcepts(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts bearing any kind of cross-scheme matching with
skosConcept |
ARTURIResourceIterator |
listNarrowerConcepts(ARTURIResource skosConcept,
boolean transitive,
boolean inference,
ARTResource... graphs)
list all concepts which are narrower than concept
skosConcept |
ARTURIResourceIterator |
listNarrowMatches(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts narrowmatched by
skosConcept |
ARTLiteralIterator |
listNotations(ARTURIResource skosConcept,
ARTResource... graphs)
returns all notations for given
skosConcept |
ARTLiteralIterator |
listNotes(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all notes for given
skosConcept |
ARTLiteralIterator |
listNotes(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all notes for given
skosConcept with language == |
ARTURIResourceIterator |
listOrderedCollectionResources(ARTResource skosOrdCollection,
ARTResource... graphs)
lists (in the proper order) all resources which are member of ordered collection
skosOrdCollection |
ARTLiteralIterator |
listPrefLabels(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns the preferred labels (in all available languages) for concept
skosConcept SKOS requires that only one preferred label value is provided for a single concept for each language |
ARTURIResourceIterator |
listRelatedConcepts(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
list all concepts related to concept
skosConcept |
ARTURIResourceIterator |
listRelatedMatches(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all concepts related-matched by
skosConcept |
ARTLiteralIterator |
listScopeNotes(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
returns all ScopeNotes for given
skosConcept |
ARTLiteralIterator |
listScopeNotes(ARTURIResource skosConcept,
String lang,
boolean inferred,
ARTResource... graphs)
returns all ScopeNotes for given
skosConcept with language == |
ARTURIResourceIterator |
listTopConceptsInScheme(ARTURIResource skosScheme,
boolean inferred,
ARTResource... graphs)
lists all top concepts belonging to the provided scheme
skosScheme |
void |
removeAltLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs) |
void |
removeAltLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs) |
void |
removeBroaderConcept(ARTURIResource skosConcept,
ARTURIResource broaderConcept,
ARTResource... graphs)
remove skos:broader relation between
skosConcept and broaderConcept |
void |
removeBroadMatch(ARTURIResource skosConcept,
ARTURIResource broaderMatchedConcept,
ARTResource... graphs)
removes a broad match between the two given concepts
|
void |
removeChangeNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
removes a change note from
skosConcept |
void |
removeChangeNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
c * removes a change note from
skosConcept |
void |
removeCloseMatch(ARTURIResource skosConcept,
ARTURIResource closelyMatchedConcept,
ARTResource... graphs)
removes a close match between the two given concepts
|
void |
removeCollection(ARTResource skosCollection,
ARTResource... graphs)
remove the collection as a whole (recursively deletes all of its links, but does not delete the
skosConcepts)
|
void |
removeCollectionAndContent(ARTResource skosCollection,
ARTResource... graphs)
remove the collection as a whole (recursively deletes all of its links, AND its skosConcepts)
|
void |
removeConceptFromScheme(ARTURIResource skosConcept,
ARTURIResource skosScheme,
ARTResource... graphs)
remove a concept from given scheme in all graphs
graphs also hasTopConcept and
isTopConceptOf for given schemes are removed whenever appropriateother info about this concept is not deleted, since it could be used by other schemes in the same graph(s): use SKOSModel.deleteConcept(ARTURIResource, ARTResource...) to completely remove any info
regarding the concept from a set of given graphs |
void |
removeConceptFromSchemes(ARTURIResource skosConcept,
ARTURIResource... skosScheme)
remove a concept from given schemes, considering the data stored in MAINGRAPH
also hasTopConcept and isTopConceptOf for given schemes are removed whenever appropriate other info about this concept is not deleted, since it could be used by other schemes in the same graph: use SKOSModel.deleteConcept(ARTURIResource, ARTResource...) to completely remove any info
regarding the concept from a set of given graphs |
void |
removeDefinition(ARTURIResource skosConcept,
ARTLiteral def,
ARTResource... graphs)
removes a definition from
skosConcept |
void |
removeDefinition(ARTURIResource skosConcept,
String def,
String lang,
ARTResource... graphs)
removes a definition from
skosConcept |
void |
removeEditorialNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
removes an editorial note from
skosConcept |
void |
removeEditorialNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
removes an editorial note from
skosConcept |
void |
removeExactMatch(ARTURIResource skosConcept,
ARTURIResource exactlyMatchedConcept,
ARTResource... graphs)
removes an exact match between the two given concepts
|
void |
removeExample(ARTURIResource skosConcept,
ARTLiteral example,
ARTResource... graphs)
removes an example from
skosConcept |
void |
removeExample(ARTURIResource skosConcept,
String example,
String lang,
ARTResource... graphs)
removes an example from
skosConcept |
void |
removeFromCollection(ARTURIResource skosElement,
ARTResource skosCollection,
ARTResource... graphs)
removes any occurrence of element
skosElement from ordered collection
skosOrdCollection |
void |
removeFromCollection(int i,
ARTResource skosOrdCollection,
ARTResource... graphs)
remove
i th element from skosOrdCollection |
void |
removeHiddenLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs) |
void |
removeHiddenLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs) |
void |
removeHistoryNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
removes an history note from
skosConcept |
void |
removeHistoryNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
removes an history note from
skosConcept |
void |
removeNarroweConcept(ARTURIResource skosConcept,
ARTURIResource narrowerConcept,
ARTResource... graphs)
remove skos:narrower relation between
skosConcept and narrowerConcept |
void |
removeNarrowMatch(ARTURIResource skosConcept,
ARTURIResource narrowerMatchedConcept,
ARTResource... graphs)
removes a narrow match between the two given concepts
|
void |
removeNotation(ARTURIResource skosConcept,
ARTLiteral lit,
ARTResource... ngs)
deletes a value from a skos concept on the
skos:notation property |
void |
removeNotation(ARTURIResource skosConcept,
String literalInfo,
ARTURIResource datatype,
ARTResource... ngs)
as for
SKOSModel.removeNotation(ARTURIResource, ARTLiteral, ARTResource...) but automatically builds a
literal from the given string and with the given datatype, then removes the triple expressing the
notation on that literal |
void |
removeNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
removes a note from
skosConcept |
void |
removeNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
removes a note from
skosConcept |
void |
removePrefLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs) |
void |
removePrefLabel(ARTURIResource skosConcept,
String languageTag,
ARTResource... graphs)
removes the prefLabel on the basis of the given language expressed through
languageTag . |
void |
removePrefLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs) |
void |
removeRelatedConcept(ARTURIResource skosConcept,
ARTURIResource relatedConcept,
ARTResource... graphs)
remove skos:related relation between
skosConcept and relatedConcept |
void |
removeRelatedMatch(ARTURIResource skosConcept,
ARTURIResource relatelyMatchedConcept,
ARTResource... graphs)
removes a related match between the two given concepts
|
void |
removeScopeNote(ARTURIResource skosConcept,
ARTLiteral note,
ARTResource... graphs)
removes a scope note from
skosConcept |
void |
removeScopeNote(ARTURIResource skosConcept,
String note,
String lang,
ARTResource... graphs)
removes a scope note from
skosConcept |
void |
renameConcept(ARTURIResource skosConcept,
String newConceptURI,
ARTResource... graphs) |
ARTURIResourceIterator |
retrieveOrphans(ARTURIResource skosScheme,
ARTResource... graphs)
addConcept and addBroaderConcept methods try to maintain consistency of topConcept relationship, by
adding or removing it whenever broader concepts are available or not.
|
void |
setDefaultScheme(ARTURIResource schema)
this method allows for the definition of a schema, which is being edited/access by default when no
explicit schema is provided through access/write methods.
|
void |
setPrefLabel(ARTURIResource skosConcept,
ARTLiteral label,
ARTResource... graphs)
sets the preferred label for concept
skosConcept if a preferred label was already available for same concept & language, then it is removed and replaced with this one |
void |
setPrefLabel(ARTURIResource skosConcept,
String label,
String languageTag,
ARTResource... graphs)
sets the preferred label for concept
skosConcept if a preferred label was already available for same concept & language, then it is removed and replaced with this one |
void |
setTopConcept(ARTURIResource skosConcept,
ARTURIResource skosScheme,
boolean isTopConcept,
ARTResource... graphs)
addConcept and addBroaderConcept methods try to maintain consistency of topConcept relationship, by
adding or removing it whenever broader concepts are available or not.
|
addAnnotationProperty, addClass, addComplementOf, addDatatypeProperty, addEnumeratedClass, addEquivalentClass, addImportStatement, addIntersectionOf, addObjectProperty, addOneOf, addOneOfDataRange, addOntologyProperty, addRestrictionOnCardinalityCardinality, addRestrictionOnCardinalityMaxCardinality, addRestrictionOnCardinalityMinCardinality, addRestrictionOnPropertyAllValuesFrom, addRestrictionOnPropertyHasValue, addRestrictionOnPropertySomeValuesFrom, addSubClassOf, addUnionOf, addValuesToDatarange, addValueToDatarange, deleteIndividual, getInverseProperty, getManchClassFromBNode, getManchExprFromBNode, hasInversePropertyBoundConcept, hasSymmetricPropertyBoundConcept, hasTransitiveInversePropertyBoundConcept, hasTransitivePropertyBoundConcept, hasTransitivePropertyBoundConcept, hasValueInDatarange, instantiateAnnotationProperty, instantiateDatatypeProperty, instantiateObjectProperty, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isFunctionalProperty, isInverseFunctionalProperty, isObjectProperty, isOntology, isOntologyProperty, isSymmetricProperty, isTransitiveProperty, listAnnotationProperties, listClasses, listDatatypeProperties, listInversePropertyBoundConcepts, listNamedClasses, listObjectProperties, listOntologyImports, listOntologyProperties, listSymmetricPropertyBoundConcepts, listTransitiveInversePropertyBoundConcepts, listTransitivePropertyBoundConcepts, listTransitivePropertyBoundConcepts, listValuesOfSubjDTypePropertyPair, listValuesOfSubjObjPropertyPair, parseDataRange, parseManchesterExpr, recursiveBNodeExploration, removeImportStatement, removeValueFromDatarange, renameIndividual, retrieveClass, setDataRange, supportsInverseProperties, supportsOWLThingMaterialization, supportsSymmetricProperties, supportsTransitiveProperties
addComment, addLabel, addPropertyDomain, addPropertyRange, addSuperClass, addSuperProperty, deleteClass, hasSuperProperty, listComments, listLabels, listNamedResources, listPropertiesForDomainClass, listPropertiesForRangeClass, listPropertyDomains, listPropertyRanges, listSubClasses, listSubProperties, listSuperClasses, listSuperProperties, listURISuperClasses, removeComment, removeLabel, removePropertyDomain, removePropertyRange, removeSuperClass, removeSuperProperty, renameClass, supportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosure
addInstance, addProperty, addRDF, addRDF, addStatement, addTriple, addType, clearRDF, close, createBNode, createBNode, createBooleanQuery, createBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createGraphQuery, createLiteral, createLiteral, createLiteral, createQuery, createQuery, createQuery, createQuery, createStatement, createTupleQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdate, createUpdateQuery, createUpdateQuery, createUpdateQuery, createURIResource, deleteProperty, deleteResource, deleteStatement, deleteTriple, existsResource, expandQName, getBaseURI, getDefaultNamespace, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, hasStatement, hasTriple, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedGraphs, listNamedInstances, listNamespaces, listPredicatesOfSubjObjPair, listProperties, listStatements, listSubjectsOfPredObjPair, listTypes, listValuesOfSubjPredPair, removeNsPrefixMapping, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResource, setBaseURI, setDefaultNamespace, setNsPrefix, writeRDF, writeRDF, writeRDF, writeRDF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClass, addComment, addLabel, addPropertyDomain, addPropertyRange, addSuperClass, addSuperProperty, deleteClass, hasSuperProperty, isClass, listClasses, listComments, listLabels, listNamedClasses, listNamedResources, listPropertiesForDomainClass, listPropertiesForRangeClass, listPropertyDomains, listPropertyRanges, listSubClasses, listSubProperties, listSuperClasses, listSuperProperties, listURISuperClasses, removeComment, removeLabel, removePropertyDomain, removePropertyRange, removeSuperClass, removeSuperProperty, renameClass, retrieveClass
addInstance, addProperty, addType, deleteProperty, deleteResource, existsResource, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedInstances, listProperties, listTypes, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResource
addRDF, addRDF, addStatement, addTriple, clearRDF, close, deleteStatement, deleteTriple, getBaseURI, getDefaultNamespace, hasStatement, hasTriple, listNamedGraphs, listNamespaces, listPredicatesOfSubjObjPair, listStatements, listSubjectsOfPredObjPair, listValuesOfSubjPredPair, setBaseURI, setDefaultNamespace, writeRDF, writeRDF
expandQName, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, removeNsPrefixMapping, setNsPrefix
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURIResource
writeRDF, writeRDF
createBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createQuery, createQuery, createQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdateQuery, createUpdateQuery, createUpdateQuery
createBooleanQuery, createGraphQuery, createQuery, createTupleQuery, createUpdate
supportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosure
public SKOSModelImpl(BaseRDFTripleModel baseRep)
public ARTLiteral getNotation(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSModel
SKOSModel.getNotation(ARTURIResource, ARTURIResource, ARTResource...)
with datatype set to
null
getNotation
in interface SKOSModel
ModelAccessException
public ARTLiteral getPrefLabel(ARTURIResource skosConcept, String languageTag, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
for language expressed by ISO
languageTag
getPrefLabel
in interface SKOSModel
ModelAccessException
public boolean isConcept(ARTURIResource concept, ARTResource... graphs) throws ModelAccessException
SKOSModel
isConcept
in interface SKOSModel
ModelAccessException
public boolean isMemberOfCollection(ARTResource skosResource, ARTResource skosCollection, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosCollection
. Note that since collections
allow for nested collections, skosResource
allows for both concepts and collections to be
used as an argumentisMemberOfCollection
in interface SKOSModel
ModelAccessException
public boolean isSKOSConceptScheme(ARTResource conceptScheme, ARTResource... graphs) throws ModelAccessException
SKOSModel
isSKOSConceptScheme
in interface SKOSModel
ModelAccessException
public boolean isTopConcept(ARTURIResource skosConcept, ARTURIResource skosScheme, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
is a topConcept in given skosScheme
isTopConcept
in interface SKOSModel
ModelAccessException
public boolean isInScheme(ARTURIResource skosConcept, ARTURIResource skosScheme, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
is in scheme skosScheme
isInScheme
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listAllSchemes(ARTResource... graphs) throws ModelAccessException
SKOSModel
listAllSchemes
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listAllSchemesForConcept(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
belongslistAllSchemesForConcept
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listAltLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listAltLabels
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listNarrowerConcepts(ARTURIResource skosConcept, boolean transitive, boolean inference, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listNarrowerConcepts
in interface SKOSModel
transitive
- if true, the property SKOS.NARROWERTRANSITIVE
is queried instead; (
inference
is true by default, no matter what the argument is specified
ModelAccessException
public ARTURIResourceIterator listBroaderConcepts(ARTURIResource skosConcept, boolean transitive, boolean inference, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listBroaderConcepts
in interface SKOSModel
transitive
- if true, the property SKOS.BROADERTRANSITIVE
is queried instead; in this case
inference
is true by default, no matter how the argument is specified
ModelAccessException
public boolean hasNarrowerConcept(ARTURIResource skosConcept, ARTURIResource narrowerSkosConcept, boolean transitive, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
has a narrower concept: narrowerSkosConcept
hasNarrowerConcept
in interface SKOSModel
transitive
- if true, the property SKOS.NARROWERTRANSITIVE
is queried instead; (if this argument
is true,
inference
is also true by default, no matter what the argument is specified
ModelAccessException
public boolean hasBroaderConcept(ARTURIResource skosConcept, ARTURIResource broaderSkosConcept, boolean transitive, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
has a broader concept: broaderSkosConcept
hasBroaderConcept
in interface SKOSModel
transitive
- if true, the property SKOS.BROADERTRANSITIVE
is queried instead; (if this argument
is true,
inference
is also true by default, no matter what the argument is specified
ModelAccessException
public ARTURIResourceIterator listConcepts(boolean infer, ARTResource... graphs) throws ModelAccessException
SKOSModel
graphs
as of rdf:type
skos:conceptlistConcepts
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listConceptsInScheme(ARTURIResource skosScheme, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosScheme
listConceptsInScheme
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listPrefLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listPrefLabels
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listScopeNotes(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listScopeNotes
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listTopConceptsInScheme(ARTURIResource skosScheme, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosScheme
listTopConceptsInScheme
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listChangeNotes(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listChangeNotes
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listDefinitions(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listDefinitions
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listEditorialNotes(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listEditorialNotes
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listExamples(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listExamples
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listHiddenLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listHiddenLabels
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listHistoryNotes(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listHistoryNotes
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listNotations(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listNotations
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listNotes(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listNotes
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listCloseMatches(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listCloseMatches
in interface SKOSModel
inferred
- if true, even exact matches will be returned!ModelAccessException
public ARTURIResourceIterator listExactMatches(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listExactMatches
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listNarrowMatches(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listNarrowMatches
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listBroadMatches(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listBroadMatches
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listRelatedMatches(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listRelatedMatches
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listOrderedCollectionResources(ARTResource skosOrdCollection, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosOrdCollection
listOrderedCollectionResources
in interface SKOSModel
ModelAccessException
public void addAltLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addAltLabel
in interface SKOSModel
ModelUpdateException
public void addAltLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addAltLabel
in interface SKOSModel
ModelUpdateException
public void addBroadMatch(ARTURIResource skosConcept, ARTURIResource broaderMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
addBroadMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addBroaderConcept(ARTURIResource skosConcept, ARTURIResource broaderConcept, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
SKOSModel.addBroaderConcept(ARTURIResource, ARTURIResource, boolean, ARTResource...)
with
cleanTopConcept
set to falseaddBroaderConcept
in interface SKOSModel
ModelUpdateException
ModelAccessException
public void addBroaderConcept(ARTURIResource skosConcept, ARTURIResource broaderConcept, boolean cleanTopConcept, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
skosConcept
to have broaderConcept
as one of its broader conceptscleanTopConcept
is true, for each scheme in which broaderConcept appears, removes
skosConcept to be a topconcept for that scheme (as there is already broaderConcept in a higher position
in the tree)addBroaderConcept
in interface SKOSModel
ModelUpdateException
ModelAccessException
public void addChangeNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addChangeNote
in interface SKOSModel
ModelUpdateException
public void addChangeNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addChangeNote
in interface SKOSModel
ModelUpdateException
public void addCloseMatch(ARTURIResource skosConcept, ARTURIResource closelyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
addCloseMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addDefinition(ARTURIResource skosConcept, ARTLiteral def, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addDefinition
in interface SKOSModel
ModelUpdateException
public void addDefinition(ARTURIResource skosConcept, String def, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addDefinition
in interface SKOSModel
ModelUpdateException
public void addEditorialNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addEditorialNote
in interface SKOSModel
ModelUpdateException
public void addEditorialNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addEditorialNote
in interface SKOSModel
ModelUpdateException
public void addExactMatch(ARTURIResource skosConcept, ARTURIResource exactlyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
addExactMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addExample(ARTURIResource skosConcept, String example, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addExample
in interface SKOSModel
ModelUpdateException
public void addExample(ARTURIResource skosConcept, ARTLiteral example, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addExample
in interface SKOSModel
ModelUpdateException
public void addHiddenLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addHiddenLabel
in interface SKOSModel
ModelUpdateException
public void addHiddenLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addHiddenLabel
in interface SKOSModel
ModelUpdateException
public void addHistoryNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addHistoryNote
in interface SKOSModel
ModelUpdateException
public void addHistoryNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addHistoryNote
in interface SKOSModel
ModelUpdateException
public void addNarrowMatch(ARTURIResource skosConcept, ARTURIResource narrowerMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
addNarrowMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addNarrowerConcept(ARTURIResource skosConcept, ARTURIResource narrowerConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
to have narrowerConcept
as one of its narrower conceptsaddNarrowerConcept
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addNotation(ARTURIResource skosConcept, ARTLiteral lit, ARTResource... ngs) throws ModelUpdateException
SKOSModel
skos:notation
propertyaddNotation
in interface SKOSModel
ModelUpdateException
public void addNotation(ARTURIResource skosConcept, String literalInfo, ARTURIResource datatype, ARTResource... ngs) throws ModelUpdateException
SKOSModel
SKOSModel.addNotation(ARTURIResource, ARTLiteral, ARTResource...)
but automatically builds a
literal from the given string and with the given datatypeaddNotation
in interface SKOSModel
ModelUpdateException
public void addNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addNote
in interface SKOSModel
ModelUpdateException
public void addNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addNote
in interface SKOSModel
ModelUpdateException
public void addRelatedMatch(ARTURIResource skosConcept, ARTURIResource relatelyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
addRelatedMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addRelatedConcept(ARTURIResource skosConcept, ARTURIResource relatedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
to have relatedConcept
as one of its related conceptsaddRelatedConcept
in interface SKOSModel
graphs
- TODOModelUpdateException
public void addScopeNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addScopeNote
in interface SKOSModel
ModelUpdateException
public void addScopeNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
addScopeNote
in interface SKOSModel
ModelUpdateException
public ARTLiteral getNotation(ARTURIResource skosConcept, ARTURIResource datatype, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
with given datatype
getNotation
in interface SKOSModel
datatype
- if null
, notation as plain literal is returned; if NodeFilters.ANY
,
then the first available notation is returnedModelAccessException
public ARTLiteralIterator listAltLabels(ARTURIResource skosConcept, String languageTag, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
with language given by
languageTag
listAltLabels
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listChangeNotes(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listChangeNotes
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listCollectionResources(ARTResource skosCollection, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosCollection
listCollectionResources
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listDefinitions(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listDefinitions
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listEditorialNotes(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listEditorialNotes
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listExamples(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listExamples
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listHiddenLabels(ARTURIResource skosConcept, String languageTag, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
with language given by
languageTag
listHiddenLabels
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listHistoryNotes(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listHistoryNotes
in interface SKOSModel
ModelAccessException
public ARTLiteralIterator listNotes(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listNotes
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listRelatedConcepts(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listRelatedConcepts
in interface SKOSModel
inferred
- if true, includes also triples having a predicate which is subproperty of
SKOS.RELATED
ModelAccessException
public ARTLiteralIterator listScopeNotes(ARTURIResource skosConcept, String lang, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept with language == lang
listScopeNotes
in interface SKOSModel
ModelAccessException
public void removeAltLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
removeAltLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeNote
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeNote
in interface SKOSModel
ModelUpdateException
public void removePrefLabel(ARTURIResource skosConcept, String languageTag, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
languageTag
.removePrefLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removePrefLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
removePrefLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removePrefLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelUpdateException
removePrefLabel
in interface SKOSModel
ModelUpdateException
public void removeAltLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
removeAltLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeHiddenLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
removeHiddenLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeHiddenLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelUpdateException
removeHiddenLabel
in interface SKOSModel
ModelUpdateException
public void removeHistoryNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeHistoryNote
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeHistoryNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeHistoryNote
in interface SKOSModel
ModelUpdateException
public void removeBroadMatch(ARTURIResource skosConcept, ARTURIResource broaderMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
removeBroadMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeBroaderConcept(ARTURIResource skosConcept, ARTURIResource broaderConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
and broaderConcept
removeBroaderConcept
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeChangeNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeChangeNote
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeChangeNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeChangeNote
in interface SKOSModel
ModelUpdateException
public void removeCloseMatch(ARTURIResource skosConcept, ARTURIResource closelyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
removeCloseMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void deleteConcept(ARTURIResource skosConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
and all information about it from graphs graphs
deleteConcept
in interface SKOSModel
ModelUpdateException
public void renameConcept(ARTURIResource skosConcept, String newConceptURI, ARTResource... graphs) throws ModelUpdateException
renameConcept
in interface SKOSModel
ModelUpdateException
public void removeDefinition(ARTURIResource skosConcept, String def, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeDefinition
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeDefinition(ARTURIResource skosConcept, ARTLiteral def, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeDefinition
in interface SKOSModel
ModelUpdateException
public void removeEditorialNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeEditorialNote
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeEditorialNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeEditorialNote
in interface SKOSModel
ModelUpdateException
public void removeExactMatch(ARTURIResource skosConcept, ARTURIResource exactlyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
removeExactMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeNotation(ARTURIResource skosConcept, ARTLiteral lit, ARTResource... ngs) throws ModelUpdateException
SKOSModel
skos:notation
propertyremoveNotation
in interface SKOSModel
ModelUpdateException
public void removeNotation(ARTURIResource skosConcept, String literalInfo, ARTURIResource datatype, ARTResource... ngs) throws ModelAccessException, ModelUpdateException
SKOSModel
SKOSModel.removeNotation(ARTURIResource, ARTLiteral, ARTResource...)
but automatically builds a
literal from the given string and with the given datatype, then removes the triple expressing the
notation on that literalremoveNotation
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeExample(ARTURIResource skosConcept, String example, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeExample
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeExample(ARTURIResource skosConcept, ARTLiteral example, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeExample
in interface SKOSModel
ModelUpdateException
public void removeNarrowMatch(ARTURIResource skosConcept, ARTURIResource narrowerMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
removeNarrowMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeNarroweConcept(ARTURIResource skosConcept, ARTURIResource narrowerConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
and narrowerConcept
removeNarroweConcept
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeRelatedConcept(ARTURIResource skosConcept, ARTURIResource relatedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
and relatedConcept
removeRelatedConcept
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeRelatedMatch(ARTURIResource skosConcept, ARTURIResource relatelyMatchedConcept, ARTResource... graphs) throws ModelUpdateException
SKOSModel
removeRelatedMatch
in interface SKOSModel
graphs
- TODOModelUpdateException
public void removeScopeNote(ARTURIResource skosConcept, ARTLiteral note, ARTResource... graphs) throws ModelUpdateException
SKOSModel
skosConcept
removeScopeNote
in interface SKOSModel
ModelUpdateException
public void removeScopeNote(ARTURIResource skosConcept, String note, String lang, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
removeScopeNote
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void setPrefLabel(ARTURIResource skosConcept, ARTLiteral label, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
setPrefLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void setPrefLabel(ARTURIResource skosConcept, String label, String languageTag, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
setPrefLabel
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void setDefaultScheme(ARTURIResource schema) throws ModelAccessException, ModelUpdateException
SKOSModel
schema
has not previosly been defined as a SKOSConceptScheme, then this
definition is added before setting it as the default schemesetDefaultScheme
in interface SKOSModel
schema
- the new default schemaModelAccessException
ModelUpdateException
public ARTURIResource getDefaultSchema()
SKOSModel
getDefaultSchema
in interface SKOSModel
public void addConcept(String uri, ARTURIResource broaderConcept, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
uri
to the default schema and stores it in named graphs
graphs
addConcept
in interface SKOSModel
broaderConcept
- a first concept where the newly created one is being attached. If it is set to
NodeFilters.NONE
, then the new concept is set to be skos:topConceptOf the default
SchemeModelUpdateException
ModelAccessException
public void addConceptToScheme(String uri, ARTURIResource broaderConcept, ARTURIResource skosScheme, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
uri
to scheme skosScheme
and stores it in named
graphs graphs
addConceptToScheme
in interface SKOSModel
broaderConcept
- a first concept where the newly created one is being attached. If it is set to
NodeFilters.NONE
, then the new concept is set to be skos:topConceptOf given SchemeModelUpdateException
ModelAccessException
public void addConceptToScheme(ARTURIResource concept, ARTURIResource skosScheme, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
concept
to scheme skosScheme
under graphs graphs
.addConceptToScheme
in interface SKOSModel
ModelUpdateException
ModelAccessException
public void addConceptToSchemes(String uri, ARTURIResource broaderConcept, ARTURIResource... skosScheme) throws ModelUpdateException, ModelAccessException
SKOSModel
uri
to all schemes in skosScheme
storing it in
the MAINGRAPHaddConceptToSchemes
in interface SKOSModel
broaderConcept
- a first concept where the newly created one is being attached. If it is set to
NodeFilters.NONE
, then the new concept is set to be skos:topConceptOf the given
skosScheme
ModelUpdateException
ModelAccessException
public ARTURIResource addSKOSConceptScheme(String uri, ARTResource... graphs) throws ModelUpdateException
SKOSModel
uri
and stores it in named graphs graphs
addSKOSConceptScheme
in interface SKOSModel
graphs
- named graphsModelUpdateException
public void addSKOSConceptScheme(ARTResource conceptScheme, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptScheme
and stores it in named graphs graphs
addSKOSConceptScheme
in interface SKOSModel
conceptScheme
- new schemegraphs
- named graphsModelUpdateException
public void setTopConcept(ARTURIResource skosConcept, ARTURIResource skosScheme, boolean isTopConcept, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
setTopConcept
in interface SKOSModel
ModelUpdateException
ModelAccessException
public void removeConceptFromScheme(ARTURIResource skosConcept, ARTURIResource skosScheme, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
graphs
also hasTopConcept and
isTopConceptOf for given schemes are removed whenever appropriateSKOSModel.deleteConcept(ARTURIResource, ARTResource...)
to completely remove any info
regarding the concept from a set of given graphsremoveConceptFromScheme
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void removeConceptFromSchemes(ARTURIResource skosConcept, ARTURIResource... skosScheme) throws ModelAccessException, ModelUpdateException
SKOSModel
SKOSModel.deleteConcept(ARTURIResource, ARTResource...)
to completely remove any info
regarding the concept from a set of given graphsremoveConceptFromSchemes
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void addSKOSCollection(Collection<ARTURIResource> conceptsCollection, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsCollection
to a new SKOS
collectionaddSKOSCollection
in interface SKOSModel
ModelUpdateException
public void addSKOSCollection(ARTURIResourceIterator conceptsIterator, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsIterator
to a new collectionaddSKOSCollection
in interface SKOSModel
ModelUpdateException
public void addSKOSCollection(String url, Collection<ARTURIResource> conceptsCollection, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsCollection
to a new SKOS
collection with given uri
addSKOSCollection
in interface SKOSModel
ModelUpdateException
public void removeFromCollection(ARTURIResource skosElement, ARTResource skosCollection, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
skosElement
from ordered collection
skosOrdCollection
removeFromCollection
in interface SKOSModel
graphs
- TODOModelUpdateException
ModelAccessException
public void addSKOSOrderedCollection(List<ARTURIResource> conceptsList, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsList
to a new SKOS ordered
collectionaddSKOSOrderedCollection
in interface SKOSModel
ModelUpdateException
public void addSKOSOrderedCollection(ARTURIResourceIterator conceptsIterator, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsIterator
to a new ordered collection in
the same order in which they are returned by the iteratoraddSKOSOrderedCollection
in interface SKOSModel
ModelUpdateException
public void addSKOSOrderedCollection(ARTURIResource orderedCollection, List<ARTURIResource> conceptsList, ARTResource... graphs) throws ModelUpdateException
SKOSModel
conceptsList
to a new SKOS ordered
collection orderedCollection
addSKOSOrderedCollection
in interface SKOSModel
orderedCollection
- ordered collection to addconceptsList
- list of concept to addgraphs
- named graphsModelUpdateException
public void removeFromCollection(int i, ARTResource skosOrdCollection, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
i
th element from skosOrdCollection
removeFromCollection
in interface SKOSModel
graphs
- TODOModelAccessException
ModelUpdateException
public void addFirstToSKOSOrderedCollection(ARTURIResource skosConcept, ARTResource skosCollection, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
as first element of skosOrderedCollection
addFirstToSKOSOrderedCollection
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void addInPositionToSKOSOrderedCollection(ARTURIResource skosConcept, int position, ARTResource skosOrderedCollection, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
to skosOrderedCollection
in position
position
addInPositionToSKOSOrderedCollection
in interface SKOSModel
ModelAccessException
ModelUpdateException
public void addLastToSKOSOrderedCollection(ARTURIResource skosConcept, ARTResource skosCollection, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
skosConcept
as last element of skosOrderedCollection
addLastToSKOSOrderedCollection
in interface SKOSModel
ModelAccessException
ModelUpdateException
public int hasPositionInList(ARTResource skosResource, ARTResource skosOrdCollection, ARTResource... graphs) throws ModelAccessException
SKOSModel
#hasPositionInList(ARTResource, ARTResource, boolean)
with numbering starting from 1hasPositionInList
in interface SKOSModel
graphs
- TODOModelAccessException
public void removeCollection(ARTResource skosCollection, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
removeCollection
in interface SKOSModel
graphs
- TODOModelUpdateException
ModelAccessException
public void removeCollectionAndContent(ARTResource skosCollection, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSModel
removeCollectionAndContent
in interface SKOSModel
graphs
- TODOModelAccessException
ModelUpdateException
public ARTURIResourceIterator retrieveOrphans(ARTURIResource skosScheme, ARTResource... graphs) throws ModelAccessException
SKOSModel
retrieveOrphans
in interface SKOSModel
ModelAccessException
public ARTURIResourceIterator listMatchingConcepts(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs)
SKOSModel
skosConcept
listMatchingConcepts
in interface SKOSModel
public OWLModel getOWLModel()
SKOSModel
getOWLModel
in interface SKOSModel
public void deleteScheme(ARTURIResource skosScheme, boolean forceDeletingDanglingConcepts, ARTResource... graphs) throws ModelUpdateException, ModelAccessException
SKOSModel
deleteScheme
in interface SKOSModel
skosScheme
- the scheme to be deletedforceDeletingDanglingConcepts
- if set to true
, all concepts which are not bound to schemes other than the one
to be deleted, are deleted as wellModelUpdateException
ModelAccessException
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.