Parses the content of RDF embedded as RDFa text as a sequence of separate RDF triples.
The return value is not specified and may be changed in future versions.
Load from local file:
SQL>sparql drop 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> 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.