Package org.iirds.dita.ot.plugin.contrib
Class FallbackIRIHandler
java.lang.Object
org.iirds.dita.ot.plugin.contrib.FallbackIRIHandler
- All Implemented Interfaces:
IRIHandler
Fallback implementation of
IRIHandler. It provides UUID URNs.- Author:
- Martin Kreutzer, Empolis Information Management GmbH
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocumentOrTopicIRI(ToCNode node) Generate IRI for a an iiRDS Topic or Document.getInfoObjectIRI(ToCNode node) Generate IRI for a an iiRDS InformationObject.getMetadataIRI(ToCNode node, String classURI, String label, String context) Generate IRI for a a metadata string property.getName()The unique name of this IRI providergetPackageIRI(ToCNode root) Generate IRI for a an iiRDS Package.toString()
-
Field Details
-
mapping
-
-
Constructor Details
-
FallbackIRIHandler
public FallbackIRIHandler()
-
-
Method Details
-
getName
Description copied from interface:IRIHandlerThe unique name of this IRI provider- Specified by:
getNamein interfaceIRIHandler- Returns:
- the name of this handler
-
getInfoObjectIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS InformationObject. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getInfoObjectIRIin interfaceIRIHandler- Parameters:
node- the node for which to generated- Returns:
- the generated IRI as String or null
-
getMetadataIRI
Description copied from interface:IRIHandlerGenerate IRI for a a metadata string property. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getMetadataIRIin interfaceIRIHandler- Parameters:
node- the node the metadata belongs toclassURI- the URI of the RDF metadata classlabel- something like a label of metadata valuecontext- an additional context, usually the property name at the node hinting the source of the metadata value- Returns:
- the generated IRI as String
-
getDocumentOrTopicIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS Topic or Document. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getDocumentOrTopicIRIin interfaceIRIHandler- Parameters:
node- the node for which to generated- Returns:
- the generated IRI as String or null
-
getPackageIRI
Description copied from interface:IRIHandlerGenerate IRI for a an iiRDS Package. Implementation may use external services to lookup IRIs or use properties of the node- Specified by:
getPackageIRIin interfaceIRIHandler- Parameters:
root- the node for which to generated (usually the root node)- Returns:
- the generated IRI as String
-
toString
-