public interface RdfCommon
RdfSerializer
and RdfParser
classes.Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
LANG_PROP_MAP
Maps RDF writer names to property prefixes that apply to them.
|
static String |
PREFIX
Property prefix.
|
static String |
RDF_arp_embedding
Configuration property: RDF/XML ARP property:
embedding . |
static String |
RDF_arp_err_
Configuration property: RDF/XML ARP property:
ERR_xxx . |
static String |
RDF_arp_errorMode
Configuration property: RDF/XML ARP property:
error-mode . |
static String |
RDF_arp_ign_
RDF/XML ARP property:
IGN_xxx . |
static String |
RDF_arp_iriRules
Configuration property: RDF/XML property:
iri_rules . |
static String |
RDF_arp_warn_
Configuration property: RDF/XML ARP property:
WARN_xxx . |
static String |
RDF_collectionFormat
Configuration property: RDF format for representing collections and arrays.
|
static String |
RDF_juneauBpNs
Configuration property: Default XML namespace for bean properties.
|
static String |
RDF_juneauNs
Configuration property: XML namespace for Juneau properties.
|
static String |
RDF_language
Configuration property: RDF language.
|
static String |
RDF_looseCollections
Configuration property: Collections should be serialized and parsed as loose collections.
|
static String |
RDF_n3_abbrevBaseUri
Configuration property: N3/Turtle property:
abbrevBaseURI . |
static String |
RDF_n3_indentProperty
Configuration property: N3/Turtle property:
indentProperty . |
static String |
RDF_n3_minGap
Configuration property: N3/Turtle property:
minGap . |
static String |
RDF_n3_objectLists
Configuration property: N3/Turtle property:
objectLists . |
static String |
RDF_n3_propertyColumn
Configuration property: N3/Turtle property:
propertyColumn . |
static String |
RDF_n3_subjectColumn
Configuration property: N3/Turtle property:
subjectColumn . |
static String |
RDF_n3_useDoubles
Configuration property: N3/Turtle property:
useDoubles . |
static String |
RDF_n3_usePropertySymbols
Configuration property: N3/Turtle property:
usePropertySymbols . |
static String |
RDF_n3_useTripleQuotedStrings
Configuration property: N3/Turtle property:
useTripleQuotedStrings . |
static String |
RDF_n3_widePropertyLen
Configuration property: N3/Turtle property:
widePropertyLen . |
static String |
RDF_rdfxml_allowBadUris
Configuration property: RDF/XML property:
allowBadURIs . |
static String |
RDF_rdfxml_attributeQuoteChar
Configuration property: RDF/XML property:
attributeQuoteChar . |
static String |
RDF_rdfxml_blockRules
Configuration property: RDF/XML property:
blockRules . |
static String |
RDF_rdfxml_longId
Configuration property: RDF/XML property:
longId . |
static String |
RDF_rdfxml_relativeUris
Configuration property: RDF/XML property:
relativeURIs . |
static String |
RDF_rdfxml_showDoctypeDeclaration
Configuration property: RDF/XML property:
showDoctypeDeclaration . |
static String |
RDF_rdfxml_showXmlDeclaration
Configuration property: RDF/XML property:
showXmlDeclaration . |
static String |
RDF_rdfxml_tab
Configuration property: RDF/XML property:
tab . |
static String |
RDF_rdfxml_xmlBase
Configuration property: RDF/XML property:
xmlbase . |
static String |
RDF_useXmlNamespaces
Configuration property: Reuse XML namespaces when RDF namespaces not specified.
|
static final String PREFIX
static final Map<String,String> LANG_PROP_MAP
static final String RDF_language
String
RdfSerializerBuilder.language(String)
RdfSerializerBuilder.n3()
RdfSerializerBuilder.ntriple()
RdfSerializerBuilder.turtle()
RdfSerializerBuilder.xml()
RdfSerializerBuilder.xmlabbrev()
RdfParserBuilder.language(String)
RdfParserBuilder.n3()
RdfParserBuilder.ntriple()
RdfParserBuilder.turtle()
RdfParserBuilder.xml()
Can be any of the following:
com.hp.hpl.jena.n3.N3JenaWriter.writer
.
static final String RDF_juneauNs
Namespace
{j:'http://www.apache.org/juneau/' }
static final String RDF_juneauBpNs
Namespace
{j:'http://www.apache.org/juneaubp/' }
static final String RDF_useXmlNamespaces
Boolean
When specified, namespaces defined using @XmlNs
and @Xml
will be inherited by the RDF serializers.
Otherwise, namespaces will be defined using @RdfNs
and @Rdf
.
static final String RDF_arp_iriRules
iri_rules
.
String
Set the engine for checking and resolving.
Possible values:
static final String RDF_arp_errorMode
error-mode
.
String
This allows a coarse-grained approach to control of error handling.
Possible values:
See also:
static final String RDF_arp_embedding
embedding
.
Boolean
Sets ARP to look for RDF embedded within an enclosing XML document.
See also:
static final String RDF_arp_err_
ERR_xxx
.
String
Provides fine-grained control over detected error conditions.
Possible values:
See also:
static final String RDF_arp_warn_
WARN_xxx
.
String
See RDF_arp_err_
for details.
static final String RDF_arp_ign_
IGN_xxx
.
String
See RDF_arp_err_
for details.
static final String RDF_rdfxml_xmlBase
xmlbase
.
String
The value to be included for an
static final String RDF_rdfxml_longId
longId
.
Boolean
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.
static final String RDF_rdfxml_allowBadUris
allowBadURIs
.
Boolean
URIs in the graph are, by default, checked prior to serialization.
static final String RDF_rdfxml_relativeUris
relativeURIs
.
String
What sort of relative URIs should be used.
A comma separate list of options:
The default value is
static final String RDF_rdfxml_showXmlDeclaration
showXmlDeclaration
.
String
Possible values:
OutputStreamWriter
that uses some encoding other than UTF-8
or UTF-16
.
In this case the encoding is shown in the XML declaration.
static final String RDF_rdfxml_showDoctypeDeclaration
showDoctypeDeclaration
.
Boolean
If true, an XML doctype declaration is included in the output.
This declaration includes a !ENTITY
declaration for each prefix mapping in the model, and any
attribute value that starts with the URI of that mapping is written as starting with the corresponding entity
invocation.
static final String RDF_rdfxml_tab
tab
.
Integer
2
The number of spaces with which to indent XML child elements.
static final String RDF_rdfxml_attributeQuoteChar
attributeQuoteChar
.
Character
The XML attribute quote character.
static final String RDF_rdfxml_blockRules
blockRules
.
String
A list of Resource
or a String
being a comma separated list of fragment IDs from
RDF Syntax Grammar indicating grammar
rules that will not be used.
static final String RDF_n3_minGap
minGap
.
Integer
1
Minimum gap between items on a line.
static final String RDF_n3_objectLists
objectLists
.
Boolean
Print object lists as comma separated lists.
static final String RDF_n3_subjectColumn
subjectColumn
.
Integer
If the subject is shorter than this value, the first property may go on the same line.
static final String RDF_n3_propertyColumn
propertyColumn
.
Integer
8
Width of the property column.
static final String RDF_n3_indentProperty
indentProperty
.
Integer
6
Width to indent properties.
static final String RDF_n3_widePropertyLen
widePropertyLen
.
Integer
20
Width of the property column.
Must be longer than propertyColumn
.
static final String RDF_n3_abbrevBaseUri
abbrevBaseURI
.
Boolean
Control whether to use abbreviations <>
or <#>
.
static final String RDF_n3_usePropertySymbols
usePropertySymbols
.
Boolean
Control whether to use a
, =
and =>
in output
static final String RDF_n3_useTripleQuotedStrings
useTripleQuotedStrings
.
Boolean
Allow the use of """
to delimit long strings.
static final String RDF_n3_useDoubles
useDoubles
.
Boolean
Allow the use doubles as 123.456
.
static final String RDF_collectionFormat
String
Possible values:
static final String RDF_looseCollections
Boolean
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)
.
WriterSerializer s = RdfSerializer.
Copyright © 2018 Apache. All rights reserved.