class Rdfa extends Parser

Class to parse RDFa 1.1 with no external dependancies.

http://www.w3.org/TR/rdfa-core/

Constants

XML_NS

RDF_XML_LITERAL

TERM_REGEXP

Properties

protected Graph $graph from Parser
protected $format The format of the document currently being parsed from Parser
protected $baseUri The base URI for the document currently being parsed from Parser
protected $tripleCount from Parser
$debug

Methods

remapBnode($name)

Create a new, unique bnode identifier from a source identifier.

from Parser
resetBnodeMap()

Delete the bnode mapping - to be called at the start of a new parse

from Parser
checkParseParams($graph, $data, $format, $baseUri)

Check, cleanup parameters and prepare for parsing

from Parser
parse($graph, $data, $format, $baseUri)

Parse RDFa 1.1 into an EasyRdf\Graph

addTriple($resource, $property, $value)

Add a triple to the current graph, and keep count of the number of triples

__construct()

Constructor

generateList($subject, $property, $list)

No description

addToList($listMapping, $property, $value)

No description

printNode($node, $depth)

No description

guessTimeDatatype($value)

No description

initialContext()

No description

expandCurie($node, $context, $value)

No description

processUri($node, $context, $value, $isProp = false)

No description

processUriList($node, $context, $values)

No description

getUriAttribute($node, $context, $attributes)

No description

processNode($node, $context, $depth = 1)

No description

Details

in Parser at line 70
protected remapBnode($name)

Create a new, unique bnode identifier from a source identifier.

If the source identifier has previously been seen, the same new bnode identifier is returned.

Parameters

$name

in Parser at line 82
protected resetBnodeMap()

Delete the bnode mapping - to be called at the start of a new parse

in Parser at line 91
protected checkParseParams($graph, $data, $format, $baseUri)

Check, cleanup parameters and prepare for parsing

Parameters

$graph
$data
$format
$baseUri

at line 674
parse($graph, $data, $format, $baseUri)

Parse RDFa 1.1 into an EasyRdf\Graph

Parameters

$graph
$data
$format
$baseUri

Exceptions

Exception

at line 69
protected addTriple($resource, $property, $value)

Add a triple to the current graph, and keep count of the number of triples

Parameters

$resource
$property
$value

at line 65
__construct()

Constructor

at line 79
protected generateList($subject, $property, $list)

Parameters

$subject
$property
$list

at line 102
protected addToList($listMapping, $property, $value)

Parameters

$listMapping
$property
$value

at line 115
protected printNode($node, $depth)

Parameters

$node
$depth

at line 166
protected guessTimeDatatype($value)

Parameters

$value

at line 185
protected initialContext()

at line 213
protected expandCurie($node, $context, $value)

Parameters

$node
$context
$value

at line 235
protected processUri($node, $context, $value, $isProp = false)

Parameters

$node
$context
$value
$isProp

at line 267
protected processUriList($node, $context, $values)

Parameters

$node
$context
$values

at line 283
protected getUriAttribute($node, $context, $attributes)

Parameters

$node
$context
$attributes

at line 301
protected processNode($node, $context, $depth = 1)

Parameters

$node
$context
$depth