Name
DB.DBA.RDF_LOAD_RDFA — Parses the content of RDF embedded as RDFa text as a sequence of separate RDF triples.
Synopsis
DB.DBA.RDF_LOAD_RDFA
(
|
in rdfa_text varchar , |
in omt_top_rdf varchar , | |
in
graph_uri
varchar
) ; |
Description
Parses the content of RDF embedded as RDFa text as a sequence of separate RDF triples.
Parameters
rdfa_text
text of document containing RDFa data
omt_top_rdf
base IRI to resolve relative IRIs
graph_uri
the IRI of destination graph
Return Types
The return value is not specified and may be changed in future versions.
Examples
Example 24.264. Simple Use
Load from local file:
SQL>sparql clear graph <http://virtuoso.openlinksw.com/example>; Done. -- 2 msec. SQL>DB.DBA.RDF_LOAD_RDFA (file_to_string ('pricing.html'), 'http://virtuoso.openlinksw.com/pricing/#', 'http://virtuoso.openlinksw.com/example'); Done. -- 106 msec.
Load from URI:
SQL>sparql clear graph <http://virtuoso.openlinksw.com/example>; SQL> DB.DBA.RDF_LOAD_RDFA (http_get('http://virtuoso.openlinksw.com/pricing/'), 'http://virtuoso.openlinksw.com/pricing/#', 'http://virtuoso.openlinksw.com/example'); Done. -- 109 msec. -- Check total triples retrieved: SQL>SPARQL SELECT COUNT(*) from <http://virtuoso.openlinksw.com/example> WHERE {?s ?p ?o}; callret-0 INTEGER _______________________________________________________________________________ 1181 1 Rows. -- 16 msec.
See Also
DB.DBA.RDF_LOAD_RDFA_MT()
DB.DBA.TTLP_MT()