This class specifies output style options for the SemWeb.RdfXmlWriter.
|
See Also: Inherited members from object.
| This is the default public constructor. |
|
EmbedNamedNodes
|
bool . Sets whether named nodes (nodes with URIs) are embedded within property elements. |
|
Full
static
|
RdfXmlWriter.Options . An instance of Options specifying that all output options are turned on. |
|
UseParseTypeLiteral
|
bool . Sets whether parseType=Literal is used for xsd:XMLLiteral values. |
|
UsePredicateAttributes
|
bool . Sets whether predicate attributes may be used. |
|
UseRdfID
|
bool . Sets whether the rdf:ID attribute is used to identify named nodes with URIs relative to the Base URI of the document, instead of an rdf:about attribute. |
|
UseRdfLI
|
bool . Sets whether rdf:_nnn URIs are replaced with rdf:li. |
|
UseTypedNodes
|
bool . Sets whether typed rdf:Description elements are allowed. |
|
XMP
static
|
RdfXmlWriter.Options . An instance of Options with only the options turned on supported by the Adobe XMP metadata format. |
This is the default public constructor.
Sets whether named nodes (nodes with URIs) are embedded within property elements.
When this field is true, the following output might be generated:
| RDF/XML Example |
<rdf:Description>
<ex:hasRelationTo>
<rdf:Description rdf:about="http://www.example.org/">
...
</rdf:Description>
</ex:hasRelationTo>
</rdf:Description>
|
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<rdf:Description> <ex:hasRelationTo rdf:resource="http://www.example.org/"/> </rdf:Description> <rdf:Description rdf:about="http://www.example.org/"> ... </rdf:Description> |
An instance of Options specifying that all output options are turned on.
Sets whether parseType=Literal is used for xsd:XMLLiteral values.
When this field is true, the following output might be generated:
| RDF/XML Example |
<rdf:Description>
<ex:hasContent rdf:parseType="Literal">
<myContent>this is <b>my</b> content</myContent>
</ex:hasContent>
</rdf:Description>
|
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<rdf:Description>
<ex:hasContent>
<myContent>this is <b>my</b> content</myContent>
</ex:hasContent>
</rdf:Description>
|
Sets whether predicate attributes may be used.
When this field is true, the following output might be generated:
| RDF/XML Example |
<foaf:Person> <foaf:knows foaf:firstname="John" foaf:lastname="Doe"/> </foaf:Person> |
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<foaf:Person>
<foaf:knows>
<rdf:Description>
<foaf:firstname>John</foaf:firstname>
<foaf:lastname>Doe</foaf:lastname>
</rdf:Description>
</foaf:knows>
</foaf:Person>
|
Sets whether the rdf:ID attribute is used to identify named nodes with URIs relative to the Base URI of the document, instead of an rdf:about attribute.
When this field is true, the following output might be generated:
| RDF/XML Example |
<foaf:Person rdf:ID="John"> ... </foaf:Person> |
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<foaf:Person rdf:about="http://www.example.org/baseURI#John"> ... </foaf:Person> |
Sets whether rdf:_nnn URIs are replaced with rdf:li.
This field controls whether rdf:_nnn properties are written out as rdf:li. This field only has an effect when the rdf:_nnn properties are streamed into the RdfXmlWriter in numerical order.
When this field is true, the following output might be generated:
| RDF/XML Example |
<rdf:Bag> <rdf:li rdf:resource="http://www.example.org/one"/> <rdf:li rdf:resource="http://www.example.org/two"/> <rdf:li rdf:resource="http://www.example.org/three"/> </rdf:Bag> |
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<rdf:Bag> <rdf:_1 rdf:resource="http://www.example.org/one"/> <rdf:_2 rdf:resource="http://www.example.org/two"/> <rdf:_3 rdf:resource="http://www.example.org/three"/> </rdf:Bag> |
Sets whether typed rdf:Description elements are allowed.
When this field is true, the following output might be generated:
| RDF/XML Example |
<foaf:Person> ... </foaf:Person> |
But when this field is false, the following output would be generated instead:
| RDF/XML Example |
<rdf:Description> <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/> ... </rdf:Description> |
An instance of Options with only the options turned on supported by the Adobe XMP metadata format.