@STService
public class Classes
extends it.uniroma2.art.semanticturkey.services.STServiceAdapter
Constructor and Description |
---|
Classes() |
Modifier and Type | Method and Description |
---|---|
void |
addIntersectionOf(org.eclipse.rdf4j.model.IRI cls,
List<String> clsDescriptions)
Adds the OWL.INTERSECTIONOF to the description of the class
cls using the supplied array,
clsDescriptions of Manchester expressions to generate the property values. |
void |
addOneOf(org.eclipse.rdf4j.model.IRI cls,
List<org.eclipse.rdf4j.model.IRI> individuals)
Enumerates (via
owl:oneOf ) all and only members of the class cls , which
are provided by the parameter individuals |
void |
addSuperCls(org.eclipse.rdf4j.model.IRI cls,
org.eclipse.rdf4j.model.IRI supercls)
adds an rdfs:superClassOf relationship between two resources (already defined in the ontology)
|
void |
addUnionOf(org.eclipse.rdf4j.model.IRI cls,
List<String> clsDescriptions)
Adds the OWL.UNIONOF to the description of the class
cls using the supplied array,
clsDescriptions of Manchester expressions to generate the property values. |
it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.IRI> |
createClass(org.eclipse.rdf4j.model.IRI newClass,
org.eclipse.rdf4j.model.IRI superClass,
org.eclipse.rdf4j.model.IRI classType,
it.uniroma2.art.semanticturkey.customform.CustomFormValue customFormValue) |
it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.IRI> |
createInstance(org.eclipse.rdf4j.model.IRI newInstance,
org.eclipse.rdf4j.model.IRI cls,
it.uniroma2.art.semanticturkey.customform.CustomFormValue customFormValue) |
void |
deleteClass(org.eclipse.rdf4j.model.IRI cls)
Deletes a class
|
void |
deleteInstance(org.eclipse.rdf4j.model.IRI instance)
Deletes an instance
|
Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> |
getClassesInfo(org.eclipse.rdf4j.model.IRI[] classList,
boolean numInst)
Returns the description of the classes in the given
classList . |
Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> |
getInstances(org.eclipse.rdf4j.model.IRI cls,
boolean includeNonDirect)
Returns the (explicit) instances of the class
cls . |
Integer |
getNumberOfInstances(org.eclipse.rdf4j.model.IRI cls,
boolean includeNonDirect)
Returns the number of instances of the given class.
|
Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> |
getSubClasses(org.eclipse.rdf4j.model.IRI superClass,
boolean numInst)
Returns the (explicit) subclasses of the class
superClass . |
Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> |
getSuperClasses(org.eclipse.rdf4j.model.IRI cls) |
void |
removeIntersectionOf(org.eclipse.rdf4j.model.IRI cls,
org.eclipse.rdf4j.model.BNode collectionBNode)
Removes an axiom identified by the property
OWL.INTERSECTIONOF based on the collection
identified by collectionNode from the description of the class identified by cls . |
void |
removeOneOf(org.eclipse.rdf4j.model.IRI cls,
org.eclipse.rdf4j.model.BNode collectionBNode)
Removes the enumeration
collectionNode from the description of the class
cls |
void |
removeSuperCls(org.eclipse.rdf4j.model.IRI cls,
org.eclipse.rdf4j.model.IRI supercls)
removes the rdfs:superClassOf relationship between two resources (already defined in the ontology)
|
void |
removeUnionOf(org.eclipse.rdf4j.model.IRI cls,
org.eclipse.rdf4j.model.BNode collectionBNode)
Removes an axiom identified by the property
OWL.UNIONOF based on the collection
identified by collectionNode from the description of the class identified by cls . |
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
@STServiceOperation @Read @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'R\')") public Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getSubClasses(@LocallyDefined org.eclipse.rdf4j.model.IRI superClass, @Optional(defaultValue="true") boolean numInst)
superClass
. If numInst
is set to
true
, then the description of each class will contain the number of (explicit) instances.superClass
- numInst
- @STServiceOperation @Read @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'R\')") public Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getSuperClasses(@LocallyDefined org.eclipse.rdf4j.model.IRI cls)
@STServiceOperation @Read @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls)\', \'R\')") public Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getClassesInfo(org.eclipse.rdf4j.model.IRI[] classList, @Optional(defaultValue="true") boolean numInst)
classList
. If numInst
is
set to true
, then the description of each class will contain the number of (explicit)
instances.classList
- numInst
- @STServiceOperation @Read @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, instances)\', \'R\')") public Collection<it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getInstances(@LocallyDefined org.eclipse.rdf4j.model.IRI cls, @Optional(defaultValue="false") boolean includeNonDirect)
cls
.cls
- includeNonDirect
- @STServiceOperation @Read @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, instances)\', \'R\')") public Integer getNumberOfInstances(@LocallyDefined org.eclipse.rdf4j.model.IRI cls, @Optional(defaultValue="false") boolean includeNonDirect)
getClassesInfo(IRI[], boolean)
returns it, but it computes other info, so in case
of a lot of instances it could be slow.cls
- includeNonDirect
- @STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls)\', \'C\')") public it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.IRI> createClass(@Optional @NotLocallyDefined org.eclipse.rdf4j.model.IRI newClass, @LocallyDefined org.eclipse.rdf4j.model.IRI superClass, @Optional @LocallyDefined @SubClassOf(superClassIRI="http://www.w3.org/2000/01/rdf-schema#Class") org.eclipse.rdf4j.model.IRI classType, @Optional it.uniroma2.art.semanticturkey.customform.CustomFormValue customFormValue) throws it.uniroma2.art.semanticturkey.exceptions.CODAException, it.uniroma2.art.semanticturkey.customform.CustomFormException
it.uniroma2.art.semanticturkey.exceptions.CODAException
it.uniroma2.art.semanticturkey.customform.CustomFormException
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls)\', \'D\')") public void deleteClass(@LocallyDefined @Deleted org.eclipse.rdf4j.model.IRI cls) throws it.uniroma2.art.semanticturkey.exceptions.DeniedOperationException
cls
- it.uniroma2.art.semanticturkey.exceptions.DeniedOperationException
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(individual)\', \'C\')") public it.uniroma2.art.semanticturkey.services.AnnotatedValue<org.eclipse.rdf4j.model.IRI> createInstance(@Optional @NotLocallyDefined org.eclipse.rdf4j.model.IRI newInstance, @LocallyDefined org.eclipse.rdf4j.model.IRI cls, @Optional it.uniroma2.art.semanticturkey.customform.CustomFormValue customFormValue) throws it.uniroma2.art.semanticturkey.exceptions.CODAException, it.uniroma2.art.semanticturkey.customform.CustomFormException
it.uniroma2.art.semanticturkey.exceptions.CODAException
it.uniroma2.art.semanticturkey.customform.CustomFormException
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(individual)\', \'D\')") public void deleteInstance(@LocallyDefined @Deleted org.eclipse.rdf4j.model.IRI instance)
instance
- @STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'C\')") public void addSuperCls(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, @LocallyDefined org.eclipse.rdf4j.model.IRI supercls)
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'D\')") public void removeSuperCls(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.IRI supercls)
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'C\')") public void addIntersectionOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, List<String> clsDescriptions) throws it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterParserException, it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterSyntacticException, it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterPrefixNotDefinedException
cls
using the supplied array,
clsDescriptions
of Manchester expressions to generate the property values. In
clsDescriptions
each element of the array could be a single classIRIit.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterParserException
it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterSyntacticException
it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterPrefixNotDefinedException
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'D\')") public void removeIntersectionOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, @LocallyDefined org.eclipse.rdf4j.model.BNode collectionBNode)
OWL.INTERSECTIONOF
based on the collection
identified by collectionNode
from the description of the class identified by cls
.@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'C\')") public void addUnionOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, List<String> clsDescriptions) throws it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterParserException, it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterSyntacticException, it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterPrefixNotDefinedException
cls
using the supplied array,
clsDescriptions
of Manchester expressions to generate the property values. In
clsDescriptions
each element of the array could be a single classIRIit.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterParserException
it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterSyntacticException
it.uniroma2.art.semanticturkey.exceptions.manchester.ManchesterPrefixNotDefinedException
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'D\')") public void removeUnionOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, @LocallyDefined org.eclipse.rdf4j.model.BNode collectionBNode)
OWL.UNIONOF
based on the collection
identified by collectionNode
from the description of the class identified by cls
.@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'C\')") public void addOneOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, List<org.eclipse.rdf4j.model.IRI> individuals)
owl:oneOf
) all and only members of the class cls
, which
are provided by the parameter individuals
@STServiceOperation(method=POST) @Write @PreAuthorize(value="@auth.isAuthorized(\'rdf(cls, taxonomy)\', \'D\')") public void removeOneOf(@LocallyDefined @Modified(role=cls) org.eclipse.rdf4j.model.IRI cls, @LocallyDefined org.eclipse.rdf4j.model.BNode collectionBNode)
collectionNode
from the description of the class
cls
Copyright © 2023 ART Group, University of Rome, Tor Vergata. All rights reserved.