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

@STService public class Resources extends STServiceAdapter
  • Constructor Details

    • Resources

      public Resources()
  • Method Details

    • updateTriple

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', values)\', \'{lang: [\'\'\' +@auth.langof(#value)+ \'\'\', \'\'\' +@auth.langof(#newValue)+ \'\'\']}\', \'U\')") @Deprecated public void updateTriple(@Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Value value, org.eclipse.rdf4j.model.Value newValue)
      Deprecated.
    • updateTripleValue

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', values)\', \'{lang: [\'\'\' +@auth.langof(#value)+ \'\'\', \'\'\' +@auth.langof(#newValue)+ \'\'\']}\', \'U\')") public void updateTripleValue(@Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Value value, org.eclipse.rdf4j.model.Value newValue)
    • updateLexicalization

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', lexicalization)\', \'{lang: [\'\'\' +@auth.langof(#value)+ \'\'\', \'\'\' +@auth.langof(#newValue)+ \'\'\']}\', \'U\')") public void updateLexicalization(@Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Literal value, org.eclipse.rdf4j.model.Literal newValue)
    • updateTriplePredicate

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', values)\', \'{lang: \'\'\' +@auth.langof(#value)+ \'\'\'}\', \'U\')") public void updateTriplePredicate(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Value value, org.eclipse.rdf4j.model.IRI newPredicate)
    • updateFlatLexicalizationProperty

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', lexicalization)\', \'{lang: \'\'\' +@auth.langof(#value)+ \'\'\'}\', \'U\')") public void updateFlatLexicalizationProperty(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource subject, @SubPropertyOf(superPropertyIRI="http://www.w3.org/2000/01/rdf-schema#label") org.eclipse.rdf4j.model.IRI property, @SubPropertyOf(superPropertyIRI="http://www.w3.org/2000/01/rdf-schema#label") org.eclipse.rdf4j.model.IRI newProperty, org.eclipse.rdf4j.model.Value value)
    • updatePredicateObject

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(resource, values)\', \'{lang: [\'\'\' +@auth.langof(#value)+ \'\'\', \'\'\' +@auth.langof(#newValue)+ \'\'\']}\', \'U\')") public void updatePredicateObject(org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Value value, org.eclipse.rdf4j.model.Value newValue)
    • removePredicateObject

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(resource, values)\', \'{lang: \'\'\' +@auth.langof(#value)+ \'\'\'}\', \'D\')") public void removePredicateObject(org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Value value)
    • removeValue

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', values)\', \'{lang: \'\'\' +@auth.langof(#value)+ \'\'\'}\', \'D\')") public void removeValue(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI property, org.eclipse.rdf4j.model.Value value)
    • addValue

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#subject)+ \', values)\', \'{lang: \'\'\' +@auth.langof(#value)+ \'\'\'}\',\'C\')") public void addValue(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI property, SpecialValue value) throws CODAException
      Throws:
      CODAException
    • setDeprecated

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(\' +@auth.typeof(#resource)+ \')\', \'U\')") public void setDeprecated(@LocallyDefined @Modified org.eclipse.rdf4j.model.IRI resource)
    • getResourceDescription

      @STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(code)\', \'R\')") public AnnotatedValue<org.eclipse.rdf4j.model.Resource> getResourceDescription(@LocallyDefined org.eclipse.rdf4j.model.Resource resource)
      Return the description of a resource, including show and nature
      Parameters:
      resource -
      Returns:
    • getResourcesInfo

      @STServiceOperation(method=POST) @Read @PreAuthorize("@auth.isAuthorized(\'rdf(resource)\', \'R\')") public Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getResourcesInfo(@JsonSerialized org.eclipse.rdf4j.model.Resource[] resources)
      Return the description of a list of resources, including show and nature
      Parameters:
      resources -
      Returns:
    • getResourcePosition

      @STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(resource)\', \'R\')") public String getResourcePosition(org.eclipse.rdf4j.model.IRI resource) throws ProjectAccessException
      Return the position of a resource (local/remote/unknown)
      Parameters:
      resource -
      Returns:
      Throws:
      ProjectAccessException
    • getResourcesPosition

      @STServiceOperation(method=POST) @Read @PreAuthorize("@auth.isAuthorized(\'rdf(resource)\', \'R\')") public Map<String,ResourcePosition> getResourcesPosition(@JsonSerialized org.eclipse.rdf4j.model.IRI[] resources) throws ProjectAccessException
      Returns a mapping between the provided resources and their position
      Parameters:
      resources -
      Returns:
      Throws:
      ProjectAccessException
    • getOutgoingTriples

      @STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(code)\', \'R\')") public String getOutgoingTriples(org.eclipse.rdf4j.model.Resource resource, org.eclipse.rdf4j.rio.RDFFormat format) throws IOException
      Throws:
      IOException
    • updateResourceTriplesDescription

      @STServiceOperation(method=POST) @Write @PreAuthorize("@auth.isAuthorized(\'rdf(code)\', \'U\')") public void updateResourceTriplesDescription(@LocallyDefined @Modified org.eclipse.rdf4j.model.Resource resource, String triples, org.eclipse.rdf4j.rio.RDFFormat format) throws IOException
      Throws:
      IOException
    • validateIRIList

      @STServiceOperation public List<AnnotatedValue<org.eclipse.rdf4j.model.IRI>> validateIRIList(String iriList)
      Used to check if a list of IRIs/QNames (manually entered by the user client-side) is correct. The list is written as a sequence of comma separated IRIs or QNames. Returns a list of annotated IRIs In case of invalid IRIs or QName with unknown prefix, it throws a IllegalArgumentException.
      Parameters:
      iriList -
      Returns: