Click or drag to resize

RdfAParser Class

Class for reading RDF embedded as RDFa from within HTML web pages.
Inheritance Hierarchy
System.Object
  VDS.RDF.Parsing.RdfAParserBase<HtmlDocument, HtmlNode, HtmlNode, HtmlAttribute>
    VDS.RDF.Parsing.RdfAParser

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 RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetAttribute(TElement, String).)
Protected methodGetAttributeName
Get the name of an attribute.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetAttributeName(TAttribute).)
Protected methodGetAttributes
Get all attributes of an element.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetAttributes(TElement).)
Protected methodGetAttributeValue
Get the value of an attribute.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetAttributeValue(TAttribute).)
Protected methodGetBaseElement
Get the base element of the specified document.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetBaseElement(THtmlDocument).)
Protected methodGetChildren
Return the children of an element (in order).
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetChildren(TElement).)
Protected methodGetElementName
Get the name of an element.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetElementName(TElement).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetHtmlElement
Get the html element of the document.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetHtmlElement(THtmlDocument).)
Protected methodGetInnerHtml
Get the HTML contained within an element as a string.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetInnerHtml(TElement).)
Protected methodGetInnerText
Get the inner text of an element or a text node.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GetInnerText(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 RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.GrabText(StringBuilder, TNode).)
Protected methodHasAttribute
Determine if an element has a particular attribute.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.HasAttribute(TElement, String).)
Protected methodHasChildren
Determine if an element has children.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.HasChildren(TElement).)
Protected methodIsTextNode
Determine if a node in the parsed Html document tree is a text node.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.IsTextNode(TNode).)
Protected methodIsXmlBaseIsPermissible
Deterine if the HTML document can have an xml:base element.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.IsXmlBaseIsPermissible(THtmlDocument).)
Public methodLoad(IGraph, StreamReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Public methodLoad(IGraph, TextReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Public methodLoad(IGraph, String)
Parses RDFa by extracting it from the HTML from the given file.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Public methodLoad(IRdfHandler, StreamReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Public methodLoad(IRdfHandler, TextReader)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Public methodLoad(IRdfHandler, String)
Parses RDFa by extracting it from the HTML from the given input.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Protected methodLoadAndParse
Parse the input stream as an HTML document.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.LoadAndParse(TextReader).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodProcessDocument
Process the content of an HTML document.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.ProcessDocument(RdfAParserContext<THtmlDocument>, RdfAEvaluationContext).)
Protected methodProcessElement
Process the content of an element of the document.
(Inherited from RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.)
Protected methodSetAttribute
Set the value of a particular attribute of an element.
(Overrides RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.SetAttribute(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