Click or drag to resize

RdfAParser Class

Class for reading RDF embedded as RDFa from within HTML web pages.
Inheritance Hierarchy
SystemObject
  VDS.RDF.ParsingRdfAParserBaseHtmlDocument, HtmlNode, HtmlNode, HtmlAttribute
    VDS.RDF.ParsingRdfAParser

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class RdfAParser : RdfAParserBase<HtmlDocument, HtmlNode, HtmlNode, HtmlAttribute>

The RdfAParser type exposes the following members.

Constructors
  NameDescription
Public methodRdfAParser
Creates a new RDFa Parser which will auto-detect which RDFa version to use (assumes 1.1 if none explicitly specified).
Public methodRdfAParser(RdfASyntax)
Creates a new RDFa Parser which will use the specified RDFa syntax.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetAttribute
Get the value of a particular attribute of an element.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetAttribute(TElement, String).)
Protected methodGetAttributeName
Get the name of an attribute.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetAttributeName(TAttribute).)
Protected methodGetAttributes
Get all attributes of an element.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetAttributes(TElement).)
Protected methodGetAttributeValue
Get the value of an attribute.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetAttributeValue(TAttribute).)
Protected methodGetBaseElement
Get the base element of the specified document.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetBaseElement(THtmlDocument).)
Protected methodGetChildren
Return the children of an element (in order).
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetChildren(TElement).)
Protected methodGetElementName
Get the name of an element.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetElementName(TElement).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetHtmlElement
Get the html element of the document.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetHtmlElement(THtmlDocument).)
Protected methodGetInnerHtml
Get the HTML contained within an element as a string.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetInnerHtml(TElement).)
Protected methodGetInnerText
Get the inner text of an element or a text node.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGetInnerText(TNode).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGrabText
Get the text content of a node and add it to the provided output buffer.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeGrabText(StringBuilder, TNode).)
Protected methodHasAttribute
Determine if an element has a particular attribute.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeHasAttribute(TElement, String).)
Protected methodHasChildren
Determine if an element has children.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeHasChildren(TElement).)
Protected methodIsTextNode
Determine if a node in the parsed Html document tree is a text node.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeIsTextNode(TNode).)
Protected methodIsXmlBaseIsPermissible
Deterine if the HTML document can have an xml:base element.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeIsXmlBaseIsPermissible(THtmlDocument).)
Public methodLoad(IGraph, StreamReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Public methodLoad(IGraph, TextReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Public methodLoad(IGraph, String)
Parses RDFa by extracting it from the HTML from the given file.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Public methodLoad(IRdfHandler, StreamReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Public methodLoad(IRdfHandler, TextReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Public methodLoad(IRdfHandler, String)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Protected methodLoadAndParse
Parse the input stream as an HTML document.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeLoadAndParse(TextReader).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodProcessDocument
Process the content of an HTML document.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeProcessDocument(RdfAParserContextTHtmlDocument, RdfAEvaluationContext).)
Protected methodProcessElement
Process the content of an element of the document.
(Inherited from RdfAParserBaseTHtmlDocument, TElement, TNode, TAttribute.)
Protected methodSetAttribute
Set the value of a particular attribute of an element.
(Overrides RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeSetAttribute(TElement, String, String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
Remarks

The RDFa parser uses a HTML parser (Html Agility Pack) that is highly tolerant of real-world HTML and so is able to extract RDFa from pages that are not strictly valid HTML/XHTML.

See Also