Interface SubjectProvider

All Known Implementing Classes:
SubjectProviderDefault

public interface SubjectProvider
  • Method Details

    • provideUniqueActorSubject

      org.apache.commons.rdf.api.IRI provideUniqueActorSubject()
      Returns:
      Provides an internal urn for a new actor, that is normally not an http(s) IRI. Sample: 'rdfpub/'.
    • provide4Resource

      org.apache.commons.rdf.api.IRI provide4Resource(org.apache.commons.rdf.api.IRI actorSubject)
      Generates a new unique IRI, starting with the actors subject. The actors subject is extracted from the passed actorSubject.
      Parameters:
      actorSubject -
      Returns:
      A new unique IRI, starting with the actors subject and a token 'res'.
    • provide4Activity

      org.apache.commons.rdf.api.IRI provide4Activity(org.apache.commons.rdf.api.IRI actorSubject)
      Generates a new unique IRI, starting with the actors subject. The actors subject is extracted from the passed actorSubject.
      Parameters:
      actorSubject -
      Returns:
      A new unique IRI, starting with the actors subject and a token 'acti'.
    • provide4Resource

      org.apache.commons.rdf.api.IRI provide4Resource(Actor actor)
      Generates a new unique IRI, starting with the actors subject.
      Parameters:
      actor -
      Returns:
      A new unique IRI, starting with the actors subject and a token 'res'.
    • provide4Activity

      org.apache.commons.rdf.api.IRI provide4Activity(Actor actor)
      Generates a new unique IRI, starting with the actors subject.
      Parameters:
      actor -
      Returns:
      A new unique IRI, starting with the actors subject and a token 'acti'.
    • extractActor

      org.apache.commons.rdf.api.IRI extractActor(org.apache.commons.rdf.api.IRI actorSubject)
      Extracts the actor subject from the passed IRI. E.g. if there are a postfix in the passed actorSubject.
      Parameters:
      actorSubject -
      Returns:
      The subject of the
    • resolveExternal

      org.apache.commons.rdf.api.IRI resolveExternal(org.apache.commons.rdf.api.IRI internal)
      Parameters:
      internal - The internal url, that has to be resolve to a instance URL.
      Returns:
      The instanze URL, https://xyz...
    • resolveExternal

      String resolveExternal(String iriAsString)
      Internal rdfpub is working with urn:someId. asExternal translates this internal IRI in an external one. E.g. https://myRdfpubInstance.org/someId.
      Parameters:
      iriAsString - the iri to translate from intern to extern.
      Returns:
      The external representation of the passed iri.
    • resolveInternal

      String resolveInternal(String iriAsString)
    • resolveInternal

      org.apache.commons.rdf.api.IRI resolveInternal(org.apache.commons.rdf.api.IRI externalAsIri)
      Parameters:
      externalAsIri -
      Returns:
      The internal representation of the passed iri.
    • getInternaleIriPrefix

      String getInternaleIriPrefix()
      Returns:
      Something like urn:somePath
    • getExternalIriPrefix

      String getExternalIriPrefix()
      Returns:
      something like https://myRdfpubInstance.org/somePath
    • provideInstanceActorSubject

      org.apache.commons.rdf.api.IRI provideInstanceActorSubject()