Class NormalizeTarget
java.lang.Object
de.wwu.scdh.annotation.selection.wadm.NormalizeTarget
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final URIprotected org.apache.jena.rdf.model.Modelprotected final RewriterConfigprotected final Resource<?> protected final RewriterFactory -
Constructor Summary
ConstructorsConstructorDescriptionNormalizeTarget(Resource<?> resource, URI iri, Optional<URI> rewriteIri, RewriterFactory rewriterFactory, RewriterConfig normalizerConfig, org.apache.jena.rdf.model.Model model) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.apache.jena.rdf.model.Resource target) This is the method of the function interfaceConsumerand actually does the normalization without throwing exceptions.voidacceptThrows(org.apache.jena.rdf.model.Resource target) Do the normalization tasks.getError()org.apache.jena.rdf.model.ModelgetModel()
-
Field Details
-
resource
-
iri
-
rewriteIri
-
model
protected org.apache.jena.rdf.model.Model model -
rewriterFactory
-
normalizerConfig
-
error
-
-
Constructor Details
-
NormalizeTarget
public NormalizeTarget(Resource<?> resource, URI iri, Optional<URI> rewriteIri, RewriterFactory rewriterFactory, RewriterConfig normalizerConfig, org.apache.jena.rdf.model.Model model)
-
-
Method Details
-
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 interfaceConsumerand actually does the normalization without throwing exceptions. -
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:
ModelExceptionURISyntaxExceptionIOExceptionnet.sf.saxon.s9api.SaxonApiException
-