Class NormalizeTarget

java.lang.Object
de.wwu.scdh.annotation.selection.wadm.NormalizeTarget
All Implemented Interfaces:
Consumer<org.apache.jena.rdf.model.Resource>

public class NormalizeTarget extends Object implements Consumer<org.apache.jena.rdf.model.Resource>
Normalize an oa:Target.

Step 1: get the source either from oa:hasTarget or take the DOMResource passed into the constructor.

Step 2: call normalizer on every selector.

This class implements Java's functional-style Consumer interface and can be used in the ..forEach(new NormalizeTarget(...)) functional pattern.

  • Field Details

    • resource

      protected final Resource<?> resource
    • iri

      protected final URI iri
    • rewriteIri

      protected final Optional<URI> rewriteIri
    • model

      protected org.apache.jena.rdf.model.Model model
    • rewriterFactory

      protected final RewriterFactory rewriterFactory
    • normalizerConfig

      protected final RewriterConfig normalizerConfig
    • error

      protected Optional<Exception> error
  • Constructor Details

  • Method Details

    • getError

      public Optional<Exception> getError()
    • getModel

      public org.apache.jena.rdf.model.Model getModel()
    • accept

      public void accept(org.apache.jena.rdf.model.Resource target)
      This is the method of the function interface Consumer and actually does the normalization without throwing exceptions.
      Specified by:
      accept in interface Consumer<org.apache.jena.rdf.model.Resource>
    • acceptThrows

      public void acceptThrows(org.apache.jena.rdf.model.Resource target) throws ModelException, URISyntaxException, IOException, net.sf.saxon.s9api.SaxonApiException
      Do the normalization tasks.
      Throws:
      ModelException
      URISyntaxException
      IOException
      net.sf.saxon.s9api.SaxonApiException