@Documented @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Inherited @PropertyStoreApply(value=RdfConfigApply.class) public @interface RdfConfig
XmlSerializer
, XmlDocSerializer
, and XmlParser
.
Used primarily for specifying bean configuration properties on REST classes and methods.
Modifier and Type | Optional Element and Description |
---|---|
String |
addBeanTypes
Configuration property: Add
|
String |
addLiteralTypes
Configuration property: Add XSI data types to non-
|
String |
addRootProperty
Configuration property: Add RDF root identifier property to root node.
|
Rdf[] |
applyRdf
Dynamically applies
@Rdf annotations to specified classes/methods/fields. |
String |
arp_embedding
Configuration property: RDF/XML ARP property:
|
String |
arp_errorMode
Configuration property: RDF/XML ARP property:
|
String |
arp_iriRules
Configuration property: RDF/XML property:
|
String |
autoDetectNamespaces
Configuration property: Auto-detect namespace usage.
|
String |
collectionFormat
Configuration property: RDF format for representing collections and arrays.
|
String |
juneauBpNs
Configuration property: Default XML namespace for bean properties.
|
String |
juneauNs
Configuration property: XML namespace for Juneau properties.
|
String |
language
Configuration property: RDF language.
|
String |
looseCollections
Configuration property: Collections should be serialized and parsed as loose collections.
|
String |
n3_abbrevBaseUri
Configuration property: N3/Turtle property:
|
String |
n3_indentProperty
Configuration property: N3/Turtle property:
|
String |
n3_minGap
Configuration property: N3/Turtle property:
|
String |
n3_objectLists
Configuration property: N3/Turtle property:
|
String |
n3_propertyColumn
Configuration property: N3/Turtle property:
|
String |
n3_subjectColumn
Configuration property: N3/Turtle property:
|
String |
n3_useDoubles
Configuration property: N3/Turtle property:
|
String |
n3_usePropertySymbols
Configuration property: N3/Turtle property:
|
String |
n3_useTripleQuotedStrings
Configuration property: N3/Turtle property:
|
String |
n3_widePropertyLen
Configuration property: N3/Turtle property:
|
String[] |
namespaces
Configuration property: Default namespaces.
|
int |
rank
Optional rank for this config.
|
String |
rdfxml_allowBadUris
Configuration property: RDF/XML property:
|
String |
rdfxml_attributeQuoteChar
Configuration property: RDF/XML property:
|
String |
rdfxml_blockRules
Configuration property: RDF/XML property:
|
String |
rdfxml_longId
Configuration property: RDF/XML property:
|
String |
rdfxml_relativeUris
Configuration property: RDF/XML property:
|
String |
rdfxml_showDoctypeDeclaration
Configuration property: RDF/XML property:
|
String |
rdfxml_showXmlDeclaration
Configuration property: RDF/XML property:
|
String |
rdfxml_tab
Configuration property: RDF/XML property:
|
String |
rdfxml_xmlBase
Configuration property: RDF/XML property:
|
String |
trimWhitespace
Configuration property: Trim whitespace from text elements.
|
String |
useXmlNamespaces
Configuration property: Reuse XML namespaces when RDF namespaces not specified.
|
public abstract int rank
Can be used to override default ordering and application of config annotations.
public abstract String language
The RDF language to use.
public abstract String juneauNs
public abstract String juneauBpNs
public abstract String arp_iriRules
Set the engine for checking and resolving.
public abstract String arp_errorMode
This allows a coarse-grained approach to control of error handling.
public abstract String arp_embedding
Sets ARP to look for RDF embedded within an enclosing XML document.
public abstract String rdfxml_xmlBase
The value to be included for an
public abstract String rdfxml_longId
Whether to use long ID's for anon resources.
Short ID's are easier to read, but can run out of memory on very large models.
public abstract String rdfxml_allowBadUris
URIs in the graph are, by default, checked prior to serialization.
public abstract String rdfxml_relativeUris
What sort of relative URIs should be used.
A comma separate list of options:
The default value is
public abstract String rdfxml_showXmlDeclaration
public abstract String rdfxml_showDoctypeDeclaration
If true, an XML doctype declaration is included in the output.
This declaration includes a
public abstract String rdfxml_tab
The number of spaces with which to indent XML child elements.
public abstract String rdfxml_attributeQuoteChar
The XML attribute quote character.
public abstract String rdfxml_blockRules
A list of
public abstract String n3_minGap
Minimum gap between items on a line.
public abstract String n3_objectLists
Print object lists as comma separated lists.
public abstract String n3_subjectColumn
If the subject is shorter than this value, the first property may go on the same line.
public abstract String n3_propertyColumn
Width of the property column.
public abstract String n3_indentProperty
Width to indent properties.
public abstract String n3_widePropertyLen
Width of the property column.
Must be longer than
public abstract String n3_abbrevBaseUri
Control whether to use abbreviations
public abstract String n3_usePropertySymbols
Control whether to use
public abstract String n3_useTripleQuotedStrings
Allow the use of
public abstract String n3_useDoubles
Allow the use doubles as
public abstract String collectionFormat
public abstract String looseCollections
When specified, collections of resources are handled as loose collections of resources in RDF instead of resources that are children of an RDF collection (e.g. Sequence, Bag).
Note that this setting is specialized for RDF syntax, and is incompatible with the concept of losslessly representing POJO models, since the tree structure of these POJO models are lost when serialized as loose collections.
This setting is typically only useful if the beans being parsed into do not have a bean property
annotated with @Rdf(beanUri=true)
.
public abstract String trimWhitespace
If
public abstract String addBeanTypes
When present, this value overrides the Serializer.SERIALIZER_addBeanTypes
setting and is
provided to customize the behavior of specific serializers in a SerializerGroup
.
public abstract String addLiteralTypes
public abstract String addRootProperty
When enabled an RDF property
This helps locate the root node during parsing.
If disabled, the parser has to search through the model to find any resources without incoming predicates to identify root notes, which can introduce a considerable performance degradation.
public abstract String autoDetectNamespaces
Detect namespace usage before serialization.
If enabled, then the data structure will first be crawled looking for namespaces that will be encountered before the root element is serialized.
public abstract String[] namespaces
The default list of namespaces associated with this serializer.
public abstract String useXmlNamespaces
When specified, namespaces defined using @XmlNs
and @Xml
will be inherited by the RDF serializers.
Otherwise, namespaces will be defined using @RdfNs
and @Rdf
.
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.