public class SKOSXLModelImpl extends SKOSModelImpl implements SKOSXLModel, SKOSXLReasoner
Modifier and Type | Class and Description |
---|---|
protected class |
SKOSXLModelImpl.LanguageFilteredXLabelIterator |
OWLModelImpl.ARTLiteralIteratorImpl, OWLModelImpl.ARTResourceIteratorImpl
logger
baseRep
Constructor and Description |
---|
SKOSXLModelImpl(BaseRDFTripleModel baseRep) |
Modifier and Type | Method and Description |
---|---|
void |
addAltXLabel(ARTURIResource skosConcept,
ARTLiteral literalForm,
ARTResource... graphs)
adds an alternative xLabel to
skosConcept by constructing it from its plain literalformthe xlabel will be created as a ARTBNode and linked to skosConcept |
void |
addAltXLabel(ARTURIResource skosConcept,
ARTResource xlabel,
ARTResource... graphs)
adds an alternative xLabel to
skosConcept |
void |
addAltXLabel(ARTURIResource skosConcept,
String literalForm,
String language,
ARTResource... graphs)
adds an alternative xLabel to
skosConcept by constructing it from its plain string
descriptor and language tag |
void |
addHiddenXLabel(ARTURIResource skosConcept,
ARTLiteral literalForm,
ARTResource... graphs)
adds an hidden xLabel to
skosConcept by constructing it from its plain literalform |
void |
addHiddenXLabel(ARTURIResource skosConcept,
ARTResource xlabel,
ARTResource... graphs)
adds an hidden xLabel to
skosConcept |
void |
addHiddenXLabel(ARTURIResource skosConcept,
String literalForm,
String language,
ARTResource... graphs)
adds an hidden xLabel to
skosConcept by constructing it from its plain string descriptor
and language tag |
ARTBNode |
addXLabel(ARTLiteral literalForm,
ARTResource... graphs)
as for
SKOSXLModel.addXLabel(ARTLiteral, boolean, ARTResource...) with makeItURI ==false |
ARTResource |
addXLabel(ARTLiteral literalForm,
boolean makeItURI,
ARTResource... graphs)
creates a skosxl:Label resource and attaches a literalform to it
depending on the value of the makeItURI argument, the resource representing the XLabel can
be either a bnode or a randomly generated URI (e.g. implementations of this method are expected to use
the SKOSXLModel.createRandomURI4XLabel(String) for generating the URI) |
void |
addXLabel(ARTResource xLabel,
ARTLiteral literalForm,
ARTResource... graphs)
makes a newly created resource a skosxl:Label, and attaches a literalform to it
|
ARTURIResource |
addXLabel(String xLabelURI,
ARTLiteral literalForm,
ARTResource... graphs)
creates a skosxl:Label from a string URI, and attaches a literalform to it
|
ARTBNode |
addXLabel(String literalForm,
String language,
ARTResource... graphs)
as for
SKOSXLModel.addXLabel(String, String, boolean, ARTResource...) with makeItURI ==false |
ARTResource |
addXLabel(String literalForm,
String language,
boolean makeItURI,
ARTResource... graphs)
as for
SKOSXLModel.addXLabel(ARTLiteral, boolean, ARTResource...) except that the literalForm is composed
through the arguments literalForm representing the true lexical content of the label, and
the lang code specified in language |
ARTURIResource |
addXLabel(String xLabelURI,
String literalForm,
String language,
ARTResource... graphs)
creates a skosxl:Label from a string URI, and attaches a literalform to it created from a string label and the
language for it
|
void |
changeLiteralForm(ARTResource xLabel,
ARTLiteral literalForm,
ARTResource... graphs)
changes the literal form of the given
xLabel according to given arguments |
void |
changeLiteralForm(ARTResource xLabel,
String literalForm,
String language,
ARTResource... graphs)
changes the literal form of the given
xLabel according to given arguments |
ARTURIResource |
createRandomURI4XLabel(String lang)
a URI of the form: "xl_<
lang >_<randomNumber>" is generated |
void |
deleteXLabel(ARTResource xLabel,
ARTResource... graphs)
deletes the xLabel, and any incoming/outcoming triple related to it.
|
void |
detachXLabel(ARTResource skosConcept,
ARTResource xLabel,
ARTResource... graphs)
simply deletes any triple linking given
skosConcept and xLabel The xLabel definition, its lexical form and any other relationship with other resources is not removed from the model The reason for the need to specify the skosConcept is that we do not make any assumption on the use of xlabels in the managed vocabulary. |
ARTLiteral |
getLiteralForm(ARTResource xLabel,
ARTResource... graphs)
gets the literalform associated to XLabel
xLabel |
ARTLiteral |
getPrefLabel(ARTURIResource skosConcept,
String languageTag,
boolean inferred,
ARTResource... graphs)
returns the preferred label for concept
skosConcept for language expressed by ISO
languageTag |
ARTResource |
getPrefXLabel(ARTURIResource skosConcept,
String languageTag,
ARTResource... graphs)
returns the preferred XLabel for concept
skosConcept with language given by
languageTag |
ARTResourceIterator |
getRelatedLabels(ARTResource xLabel,
ARTResource... graphs)
since
skosxl:labelRelation property represents an extension point and is not thought to be
instantiated its way, if available a reasoner is set by default |
boolean |
isXLabel(ARTResource resource,
ARTResource... graphs)
tells if the given
resource is an instance of skosxl:Label |
ARTLiteralIterator |
listAltLabels(ARTURIResource skosConcept,
boolean inferred,
ARTResource... graphs)
METHODS REDEFINED FROM SKOS MODEL TO SUPPORT XLABEL REASONING **
|
ARTLiteralIterator |
listAltLabels(ARTURIResource skosConcept,
String languageTag,
boolean inferred,
ARTResource... graphs)
list all Alternative Labels for concept
skosConcept with language given by
languageTag |
ARTResourceIterator |
listAltXLabels(ARTURIResource skosConcept,
ARTResource... graphs)
list all Alternative XLabels for concept
skosConcept |
ARTResourceIterator |
listAltXLabels(ARTURIResource skosConcept,
String languageTag,
ARTResource... graphs)
list all Alternative XLabels for concept
skosConcept with language given by
languageTag |
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 |
ARTResourceIterator |
listHiddenXLabels(ARTURIResource skosConcept,
ARTResource... graphs)
list all Hidden XLabels for concept
skosConcept |
ARTResourceIterator |
listHiddenXLabels(ARTURIResource skosConcept,
String languageTag,
ARTResource... graphs)
list all Hidden XLabels for concept
skosConcept with language given by
languageTag |
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 |
ARTResourceIterator |
listPrefXLabels(ARTURIResource skosConcept,
ARTResource... graphs)
returns the preferred XLabels (in all available languages) for concept
skosConcept SKOS requires that only one preferred label value is provided for a single concept for each language |
protected ARTLiteralIterator |
resolveXLabelsPropertyChain(ARTURIResource concept,
ARTURIResource xLabelProperty,
ARTURIResource labelProperty,
boolean inferred,
ARTResource... graphs)
TRIVIAL REASONING METHODS ***
|
protected ARTLiteralIterator |
resolveXLabelsPropertyChain(ARTURIResource concept,
ARTURIResource xLabelProperty,
ARTURIResource labelProperty,
String languageTag,
boolean inferred,
ARTResource... graphs) |
void |
setPrefXLabel(ARTURIResource skosConcept,
ARTLiteral literalform,
ARTResource... graphs)
as for
SKOSXLModel.setPrefXLabel(ARTURIResource, ARTLiteral, boolean, ARTResource...) with delete=true |
void |
setPrefXLabel(ARTURIResource skosConcept,
ARTLiteral literalform,
boolean delete,
ARTResource... graphs)
sets the preferred label for concept
skosConcept by creating it from passed arguments |
void |
setPrefXLabel(ARTURIResource skosConcept,
ARTResource xlabel,
ARTResource... graphs)
as for
SKOSXLModel.setPrefXLabel(ARTURIResource, ARTResource, boolean, ARTResource...) with delete=true |
void |
setPrefXLabel(ARTURIResource skosConcept,
ARTResource xlabel,
boolean delete,
ARTResource... graphs)
sets the preferred label for concept
skosConcept |
void |
setPrefXLabel(ARTURIResource skosConcept,
String literalform,
String language,
ARTResource... graphs)
as for
SKOSXLModel.setPrefXLabel(ARTURIResource, String, String, boolean, ARTResource...) with delete=true |
void |
setPrefXLabel(ARTURIResource skosConcept,
String literalForm,
String language,
boolean delete,
ARTResource... graphs)
sets the preferred label for concept
skosConcept by creating it from passed arguments |
boolean |
supportsExtendedLabels()
SKOSXL REASONING METHODS ***
|
addAltLabel, addAltLabel, addBroaderConcept, addBroaderConcept, addBroadMatch, addChangeNote, addChangeNote, addCloseMatch, addConcept, addConceptToScheme, addConceptToScheme, addConceptToSchemes, addDefinition, addDefinition, addEditorialNote, addEditorialNote, addExactMatch, addExample, addExample, addFirstToSKOSOrderedCollection, addHiddenLabel, addHiddenLabel, addHistoryNote, addHistoryNote, addInPositionToSKOSOrderedCollection, addLastToSKOSOrderedCollection, addNarrowerConcept, addNarrowMatch, addNotation, addNotation, addNote, addNote, addRelatedConcept, addRelatedMatch, addScopeNote, addScopeNote, addSKOSCollection, addSKOSCollection, addSKOSCollection, addSKOSConceptScheme, addSKOSConceptScheme, addSKOSOrderedCollection, addSKOSOrderedCollection, addSKOSOrderedCollection, deleteConcept, deleteScheme, getDefaultSchema, getNotation, getNotation, getOWLModel, hasBroaderConcept, hasNarrowerConcept, hasPositionInList, isConcept, isInScheme, isMemberOfCollection, isSKOSConceptScheme, isTopConcept, listAllSchemes, listAllSchemesForConcept, listBroaderConcepts, listBroadMatches, listChangeNotes, listChangeNotes, listCloseMatches, listCollectionResources, listConcepts, listConceptsInScheme, listDefinitions, listDefinitions, listEditorialNotes, listEditorialNotes, listExactMatches, listExamples, listExamples, listHistoryNotes, listHistoryNotes, listMatchingConcepts, listNarrowerConcepts, listNarrowMatches, listNotations, listNotes, listNotes, listOrderedCollectionResources, listRelatedConcepts, listRelatedMatches, listScopeNotes, listScopeNotes, listTopConceptsInScheme, removeAltLabel, removeAltLabel, removeBroaderConcept, removeBroadMatch, removeChangeNote, removeChangeNote, removeCloseMatch, removeCollection, removeCollectionAndContent, removeConceptFromScheme, removeConceptFromSchemes, removeDefinition, removeDefinition, removeEditorialNote, removeEditorialNote, removeExactMatch, removeExample, removeExample, removeFromCollection, removeFromCollection, removeHiddenLabel, removeHiddenLabel, removeHistoryNote, removeHistoryNote, removeNarroweConcept, removeNarrowMatch, removeNotation, removeNotation, removeNote, removeNote, removePrefLabel, removePrefLabel, removePrefLabel, removeRelatedConcept, removeRelatedMatch, removeScopeNote, removeScopeNote, renameConcept, retrieveOrphans, setDefaultScheme, setPrefLabel, setPrefLabel, setTopConcept
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
addAltLabel, addAltLabel, addBroaderConcept, addBroaderConcept, addBroadMatch, addChangeNote, addChangeNote, addCloseMatch, addConcept, addConceptToScheme, addConceptToScheme, addConceptToSchemes, addDefinition, addDefinition, addEditorialNote, addEditorialNote, addExactMatch, addExample, addExample, addFirstToSKOSOrderedCollection, addHiddenLabel, addHiddenLabel, addHistoryNote, addHistoryNote, addInPositionToSKOSOrderedCollection, addLastToSKOSOrderedCollection, addNarrowerConcept, addNarrowMatch, addNotation, addNotation, addNote, addNote, addRelatedConcept, addRelatedMatch, addScopeNote, addScopeNote, addSKOSCollection, addSKOSCollection, addSKOSCollection, addSKOSConceptScheme, addSKOSConceptScheme, addSKOSOrderedCollection, addSKOSOrderedCollection, addSKOSOrderedCollection, deleteConcept, deleteScheme, getDefaultSchema, getNotation, getNotation, getOWLModel, hasBroaderConcept, hasNarrowerConcept, hasPositionInList, isConcept, isInScheme, isMemberOfCollection, isSKOSConceptScheme, isTopConcept, listAllSchemes, listAllSchemesForConcept, listBroaderConcepts, listBroadMatches, listChangeNotes, listChangeNotes, listCloseMatches, listCollectionResources, listConcepts, listConceptsInScheme, listDefinitions, listDefinitions, listEditorialNotes, listEditorialNotes, listExactMatches, listExamples, listExamples, listHistoryNotes, listHistoryNotes, listMatchingConcepts, listNarrowerConcepts, listNarrowMatches, listNotations, listNotes, listNotes, listOrderedCollectionResources, listRelatedConcepts, listRelatedMatches, listScopeNotes, listScopeNotes, listTopConceptsInScheme, removeAltLabel, removeAltLabel, removeBroaderConcept, removeBroadMatch, removeChangeNote, removeChangeNote, removeCloseMatch, removeCollection, removeCollectionAndContent, removeConceptFromScheme, removeConceptFromSchemes, removeDefinition, removeDefinition, removeEditorialNote, removeEditorialNote, removeExactMatch, removeExample, removeExample, removeFromCollection, removeFromCollection, removeHiddenLabel, removeHiddenLabel, removeHistoryNote, removeHistoryNote, removeNarroweConcept, removeNarrowMatch, removeNotation, removeNotation, removeNote, removeNote, removePrefLabel, removePrefLabel, removePrefLabel, removeRelatedConcept, removeRelatedMatch, removeScopeNote, removeScopeNote, renameConcept, retrieveOrphans, setDefaultScheme, setPrefLabel, setPrefLabel, setTopConcept
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
supportsInverseProperties, supportsOWLThingMaterialization, supportsSymmetricProperties, supportsTransitiveProperties
public SKOSXLModelImpl(BaseRDFTripleModel baseRep)
public boolean isXLabel(ARTResource resource, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
resource
is an instance of skosxl:Label
isXLabel
in interface SKOSXLModel
ModelAccessException
public void addXLabel(ARTResource xLabel, ARTLiteral literalForm, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
addXLabel
in interface SKOSXLModel
ModelUpdateException
public ARTURIResource addXLabel(String xLabelURI, ARTLiteral literalForm, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
addXLabel
in interface SKOSXLModel
ModelUpdateException
public ARTURIResource addXLabel(String xLabelURI, String literalForm, String language, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
addXLabel
in interface SKOSXLModel
ModelUpdateException
public ARTResource addXLabel(ARTLiteral literalForm, boolean makeItURI, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
makeItURI
argument, the resource representing the XLabel can
be either a bnode or a randomly generated URI (e.g. implementations of this method are expected to use
the SKOSXLModel.createRandomURI4XLabel(String)
for generating the URI)addXLabel
in interface SKOSXLModel
makeItURI
- if true
, then a URI is created for the XLabelModelUpdateException
public ARTResource addXLabel(String literalForm, String language, boolean makeItURI, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
SKOSXLModel.addXLabel(ARTLiteral, boolean, ARTResource...)
except that the literalForm is composed
through the arguments literalForm
representing the true lexical content of the label, and
the lang code specified in language
addXLabel
in interface SKOSXLModel
makeItURI
- if true
, then a URi is created for the XLabelModelUpdateException
public ARTBNode addXLabel(ARTLiteral literalForm, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
SKOSXLModel.addXLabel(ARTLiteral, boolean, ARTResource...)
with makeItURI
==falseaddXLabel
in interface SKOSXLModel
ModelUpdateException
public ARTBNode addXLabel(String literalForm, String language, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
SKOSXLModel.addXLabel(String, String, boolean, ARTResource...)
with makeItURI
==falseaddXLabel
in interface SKOSXLModel
ModelUpdateException
public void addAltXLabel(ARTURIResource skosConcept, ARTResource xlabel, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
addAltXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void addAltXLabel(ARTURIResource skosConcept, ARTLiteral literalForm, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by constructing it from its plain literalformARTBNode
and linked to skosConcept
addAltXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void addAltXLabel(ARTURIResource skosConcept, String literalForm, String language, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by constructing it from its plain string
descriptor and language tagaddAltXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void addHiddenXLabel(ARTURIResource skosConcept, ARTResource xlabel, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
addHiddenXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void addHiddenXLabel(ARTURIResource skosConcept, ARTLiteral literalForm, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by constructing it from its plain literalformaddHiddenXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void addHiddenXLabel(ARTURIResource skosConcept, String literalForm, String language, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by constructing it from its plain string descriptor
and language tagaddHiddenXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void changeLiteralForm(ARTResource xLabel, ARTLiteral literalForm, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
xLabel
according to given argumentschangeLiteralForm
in interface SKOSXLModel
ModelUpdateException
public void changeLiteralForm(ARTResource xLabel, String literalForm, String language, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
xLabel
according to given argumentschangeLiteralForm
in interface SKOSXLModel
ModelUpdateException
public void deleteXLabel(ARTResource xLabel, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
deleteXLabel
in interface SKOSXLModel
ModelUpdateException
public void detachXLabel(ARTResource skosConcept, ARTResource xLabel, ARTResource... graphs) throws ModelUpdateException
SKOSXLModel
skosConcept
and xLabel
detachXLabel
in interface SKOSXLModel
ModelUpdateException
public ARTLiteral getLiteralForm(ARTResource xLabel, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
xLabel
getLiteralForm
in interface SKOSXLModel
ModelAccessException
public ARTResource getPrefXLabel(ARTURIResource skosConcept, String languageTag, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
with language given by
languageTag
getPrefXLabel
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator getRelatedLabels(ARTResource xLabel, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosxl:labelRelation
property represents an extension point and is not thought to be
instantiated its way, if available a reasoner is set by defaultgetRelatedLabels
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator listAltXLabels(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
listAltXLabels
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator listAltXLabels(ARTURIResource skosConcept, String languageTag, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
with language given by
languageTag
listAltXLabels
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator listHiddenXLabels(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
listHiddenXLabels
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator listHiddenXLabels(ARTURIResource skosConcept, String languageTag, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
with language given by
languageTag
listHiddenXLabels
in interface SKOSXLModel
ModelAccessException
public ARTResourceIterator listPrefXLabels(ARTURIResource skosConcept, ARTResource... graphs) throws ModelAccessException
SKOSXLModel
skosConcept
listPrefXLabels
in interface SKOSXLModel
ModelAccessException
public void setPrefXLabel(ARTURIResource skosConcept, ARTResource xlabel, boolean delete, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
setPrefXLabel
in interface SKOSXLModel
delete
- if true
previous xlabel is deleted as for
SKOSXLModel.deleteXLabel(ARTResource, ARTResource...)
ModelAccessException
ModelUpdateException
public void setPrefXLabel(ARTURIResource skosConcept, ARTResource xlabel, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
SKOSXLModel.setPrefXLabel(ARTURIResource, ARTResource, boolean, ARTResource...)
with delete=truesetPrefXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void setPrefXLabel(ARTURIResource skosConcept, ARTLiteral literalform, boolean delete, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by creating it from passed argumentssetPrefXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void setPrefXLabel(ARTURIResource skosConcept, ARTLiteral literalform, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
SKOSXLModel.setPrefXLabel(ARTURIResource, ARTLiteral, boolean, ARTResource...)
with delete=truesetPrefXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public void setPrefXLabel(ARTURIResource skosConcept, String literalForm, String language, boolean delete, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
skosConcept
by creating it from passed argumentssetPrefXLabel
in interface SKOSXLModel
delete
- if true
previous xlabel is deleted as for
SKOSXLModel.deleteXLabel(ARTResource, ARTResource...)
ModelAccessException
ModelUpdateException
public void setPrefXLabel(ARTURIResource skosConcept, String literalform, String language, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
SKOSXLModel
SKOSXLModel.setPrefXLabel(ARTURIResource, String, String, boolean, ARTResource...)
with delete=truesetPrefXLabel
in interface SKOSXLModel
ModelAccessException
ModelUpdateException
public boolean supportsExtendedLabels()
supportsExtendedLabels
in interface SKOSXLReasoner
true
either if there is OWL2 support for property chain reasoning OR if,
given the triples:?concept skosxl:(pref|alt|hidden)Label ?xLabel
?xLabel skosxl:lexicalForm ?value
?concept skos:(pref|alt|hidden)label ?value
public ARTLiteralIterator listAltLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
listAltLabels
in interface SKOSModel
listAltLabels
in class SKOSModelImpl
ModelAccessException
public ARTLiteralIterator listHiddenLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listHiddenLabels
in interface SKOSModel
listHiddenLabels
in class SKOSModelImpl
ModelAccessException
public ARTLiteralIterator listPrefLabels(ARTURIResource skosConcept, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
listPrefLabels
in interface SKOSModel
listPrefLabels
in class SKOSModelImpl
ModelAccessException
public ARTLiteralIterator listAltLabels(ARTURIResource skosConcept, String languageTag, boolean inferred, ARTResource... graphs) throws ModelAccessException
SKOSModel
skosConcept
with language given by
languageTag
listAltLabels
in interface SKOSModel
listAltLabels
in class SKOSModelImpl
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
listHiddenLabels
in class SKOSModelImpl
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
getPrefLabel
in class SKOSModelImpl
ModelAccessException
protected ARTLiteralIterator resolveXLabelsPropertyChain(ARTURIResource concept, ARTURIResource xLabelProperty, ARTURIResource labelProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
ModelAccessException
protected ARTLiteralIterator resolveXLabelsPropertyChain(ARTURIResource concept, ARTURIResource xLabelProperty, ARTURIResource labelProperty, String languageTag, boolean inferred, ARTResource... graphs) throws ModelAccessException
ModelAccessException
public ARTURIResource createRandomURI4XLabel(String lang)
SKOSXLModel
lang
>_<randomNumber>" is generatedcreateRandomURI4XLabel
in interface SKOSXLModel
lang
- the lnaguage for the XLabelCopyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.