Top

Name

DB.DBA.RDF_LOAD_RDFXML — Parses the content of RDF/XML text as a sequence of separate RDF triples.

Synopsis

DB.DBA.RDF_LOAD_RDFXML ( in rdfxml_text varchar ,
  in omt_top_rdf varchar ,
  in graph_uri varchar );
 

Description

Parses the content of RDF/XML text as a sequence of separate RDF triples.

Parameters

rdfxml_text

text of XML document

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.263. Simple Use

Load from local file:

SQL>sparql drop graph <http://www.biopax.org/prototype#sample-closure>;
Done. -- 2 msec.
SQL>DB.DBA.RDF_LOAD_RDFXML (file_to_string ('MatInf-for-Alan/Reactome_109581.owl'), '', 'http://www.biopax.org/prototype#sample');
Done. -- 106 msec.

Load from URI:

SQL> DB.DBA.RDF_LOAD_RDFXML (http_get('http://lod.taxonconcept.org/ontology/txn.owl'), '', 'http://lod.taxonconcept.org/ontology/txn.owl#');
Done. -- 109 msec.

-- Check total triples retrieved:
SQL>SPARQL
SELECT COUNT(*)
from <http://lod.taxonconcept.org/ontology/txn.owl#>
WHERE {?s ?p ?o};
callret-0
INTEGER
_______________________________________________________________________________

495

1 Rows. -- 16 msec.