public static class Builder.AdvancedJena extends Builder.AdvancedWithBuffer<org.apache.jena.graph.Node,org.apache.jena.datatypes.RDFDatatype,Builder.AdvancedJena>
Builder.Advanced.BetweenWithWildcard<TT>| Constructor and Description |
|---|
AdvancedJena() |
| Modifier and Type | Method and Description |
|---|---|
T |
addTransformationForAttributeValue(String elementName,
String attributeName,
StringTransform transform) |
XmlToRdfAdvancedJena |
build() |
T |
overrideNamespace(String namespace) |
T |
renameElement(no.acando.xmltordf.Builder.XmlPath path,
String to) |
T |
renameElement(String elementFrom,
String to) |
T |
renameElement(String elementFrom,
StringTransformTwoValue transform) |
T |
simpleTypePolicy(SimpleTypePolicy policy) |
setBufferaddComplexElementTransformAtEndOfElement, addComplexElementTransformAtStartOfElement, autoAttributeNamespace, autoTypeLiterals, compositeId, convertComplexElementsWithOnlyAttributesAndSimpleTypeChildrenToPredicate, convertComplexElementsWithOnlyAttributesToPredicate, forceMixedContent, insertPredicate, invertPredicate, mapTextInAttributeToUri, mapTextInElementToUri, resolveAsQnameInAttributeValue, setBaseNamespace, setDatatype, skipElement, useElementAsPredicate, uuidBasedIdInsteadOfBlankNodes, xsiTypeSupportpublic XmlToRdfAdvancedJena build()
public T overrideNamespace(String namespace)
namespace - Override all namespaces with this namespacepublic T renameElement(String elementFrom, String to)
elementFrom - The full URI of the element in the XML fileto - The new full URIpublic T renameElement(no.acando.xmltordf.Builder.XmlPath path,
String to)
path - The path, where the last element is the one to rename. Create a path with Builder.createPath("", "", ...)to - The new full URIpublic T renameElement(String elementFrom, StringTransformTwoValue transform)
elementFrom - The full URI of the element in the XML filetransform - a function that takes the namespace and element name as attributes and returns a new string.public T simpleTypePolicy(SimpleTypePolicy policy)
policy - Either SimpleTypePolicy.compact or SimpleTypePolicy.expandpublic T addTransformationForAttributeValue(String elementName, String attributeName, StringTransform transform)
elementName - The element name (full URI)attributeName - The attribute name (full URI)transform - A function for transforming the value. Eg v -> v.toUpperCase()Copyright © 2016. All rights reserved.