Class Individuals
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Individuals
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services for manipulating individuals.
- Author:
- Manuel Fiorelli
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addType
(org.eclipse.rdf4j.model.Resource individual, org.eclipse.rdf4j.model.Resource type) Adds a type to an individualCollection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>
getNamedTypes
(org.eclipse.rdf4j.model.Resource individual) Returns the (explicit) named types of the given individualindividual
.void
removeType
(org.eclipse.rdf4j.model.Resource individual, org.eclipse.rdf4j.model.Resource type) Removes a type to an individualMethods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getOptionalProject, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
Individuals
public Individuals()
-
-
Method Details
-
getNamedTypes
@STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#individual)+ \')\', \'R\')") public Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getNamedTypes(@LocallyDefined org.eclipse.rdf4j.model.Resource individual) Returns the (explicit) named types of the given individualindividual
.- Parameters:
individual
-- Returns:
-
addType
@STServiceOperation @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#individual)+ \')\', \'U\')") public void addType(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource individual, @LocallyDefined org.eclipse.rdf4j.model.Resource type) Adds a type to an individual- Parameters:
individual
-type
-
-
removeType
@STServiceOperation @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#individual)+ \')\', \'D\')") public void removeType(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource individual, org.eclipse.rdf4j.model.Resource type) Removes a type to an individual- Parameters:
individual
-type
-
-