HtmlWriter Class |
Namespace: VDS.RDF.Writing
The HtmlWriter type exposes the following members.
Name | Description | |
---|---|---|
HtmlWriter | Initializes a new instance of the HtmlWriter class |
Name | Description | |
---|---|---|
CssClassBlankNode |
Gets/Sets the CSS class used for the span tags used to display Blank Node IDs.
(Inherited from BaseHtmlWriter.) | |
CssClassBox |
Gets/Sets the CSS class used for div tags used to group chunks of markup into a box.
(Inherited from BaseHtmlWriter.) | |
CssClassDatatype |
Gets/Sets the CSS class used for the anchor tags used to display Literal datatypes.
(Inherited from BaseHtmlWriter.) | |
CssClassLangSpec |
Gets/Sets the CSS class used for the span tags used to display Literal language specifiers.
(Inherited from BaseHtmlWriter.) | |
CssClassLiteral |
Gets/Sets the CSS class used for the span tags used to display Literals.
(Inherited from BaseHtmlWriter.) | |
CssClassUri |
Gets/Sets the CSS class used for the anchor tags used to display the URIs of URI Nodes.
(Inherited from BaseHtmlWriter.) | |
DefaultNamespaces |
Gets/Sets the Default Namespaces to use for writers.
| |
Stylesheet |
Gets/Sets a path to a Stylesheet which is used to format the Graph output.
(Inherited from BaseHtmlWriter.) | |
UriPrefix |
Gets/Sets the Prefix applied to href attributes.
(Inherited from BaseHtmlWriter.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save(IGraph, TextWriter) |
Saves the Result Set to the given Stream as an XHTML Table with embedded RDFa.
| |
Save(IGraph, String) |
Saves the Graph to the given File as an XHTML Table with embedded RDFa.
| |
Save(IGraph, TextWriter, Boolean) |
Save the Graph to the given Stream as an XHTML Table with embedded RDFa.
| |
ToString |
Gets the String representation of the writer which is a description of the syntax it produces.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Warning |
Event which is raised if there is a non-fatal error with the RDF being output
|
Since not all Triples can be embedded into XHTML those Triples will not have RDFa generated for them but all Triples will be shown in a human readable format. Triples that can be serialized are roughly equivalent to anything that can be serialized in Turtle i.e. URI/BNode subject, URI predicates and URI/BNode/Literal object.
If you encode Triples which have values datatyped as XML Literals with this writer then round-trip Graph equality is not guaranteed as the RDFa parser will add appropriate Namespace declarations to elements as required by the specification.