java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.Individuals
All Implemented Interfaces:
NewerNewStyleService, STService

@STService public class Individuals extends STServiceAdapter
This class provides services for manipulating individuals.
Author:
Manuel Fiorelli
  • 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 individual individual.
      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 -