Hi Jakub,
R2RML gets mapped to Virtuoso RDFViews under the covers which are transient by
default i.e. are not persisted to the Quad Store. There is a an option to have
these materialised/persisted/sync'ed to the Quad Store as detailed @
http://docs.openlinksw.com/virtuoso/r2rml.html#r2rmlgentransperslviewrs
<http://docs.openlinksw.com/virtuoso/r2rml.html#r2rmlgentransperslviewrs> …
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
<http://www.openlinksw.com/>
Weblog -- http://www.openlinksw.com/blogs/ <http://www.openlinksw.com/blogs/>
LinkedIn -- http://www.linkedin.com/company/openlink-software/
<http://www.linkedin.com/company/openlink-software/>
Twitter -- http://twitter.com/OpenLink <http://twitter.com/OpenLink>
Google+ -- http://plus.google.com/100570109519069333827/
<http://plus.google.com/100570109519069333827/>
Facebook -- http://www.facebook.com/OpenLinkSoftware
<http://www.facebook.com/OpenLinkSoftware>
Universal Data Access, Integration, and Management Technology Providers
> On 12 Nov 2014, at 19:03, Jakub Káňa <jakubk...@gmail.com
> <mailto:jakubk...@gmail.com>> wrote:
>
>
> S pozdravem a přáním pěkného dne Jakub Káňa
>
> ---------- Přeposlaná zpráva ----------
> Od: "Jakub Káňa" <jakubk...@gmail.com <mailto:jakubk...@gmail.com>>
> Datum: 11.11.2014 23:52
> Předmět: Where is my triples stored?
> Komu: "Hugh Williams" <hwilli...@openlinksw.com
> <mailto:hwilli...@openlinksw.com>>
> Kopie:
>
> Hello I have a probably simple problem but I am not able to find it anywhere
> in docs.
>
> I use this code in Interactive SQL
>
> SPARQL clear graph <http://product-open-data.org/temp
> <http://product-open-data.org/temp>>;
> SPARQL clear graph
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01>>;
> DB.DBA.TTLP ('
> @prefix rr: <http://www.w3.org/ns/r2rml# <http://www.w3.org/ns/r2rml#>> .
> @prefix foaf: <http://xmlns.com/foaf/0.1/ <http://xmlns.com/foaf/0.1/>> .
> @prefix gr: <http://purl.org/goodrelations/v1#
> <http://purl.org/goodrelations/v1#>> .
> @prefix s: <http://schema.org/ <http://schema.org/>> .
> @prefix pod: <http://linked.opendata.cz/ontology/product-open-data.org#
> <http://linked.opendata.cz/ontology/product-open-data.org#>>
> <#TriplesMapBrand>
> a rr:TriplesMap;
> rr:logicalTable [
> rr:tableSchema "POD";
> rr:tableOwner "DBA";
> rr:tableName "BRAND"
> ];
> rr:subjectMap
> [
> rr:template "http://linked.opendata.cz/resource/brand/{BSIN}
> <http://linked.opendata.cz/resource/brand/%7BBSIN%7D>";
> rr:class gr:Brand;
> rr:graph
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01>>
> ];
> rr:predicateObjectMap [
> rr:predicateMap [rr:constant pod:bsin];
> rr:objectMap [rr:termType rr:Literal; rr:column "BSIN" ];
> ];
> rr:predicateObjectMap [
> rr:predicateMap [rr:constant gr:name];
> rr:objectMap [rr:termType rr:Literal; rr:column "BRAND_NM" ];
> ];
> rr:predicateObjectMap [
> rr:predicateMap [rr:constant s:url];
> rr:objectMap [rr:termtype "IRI"; rr:template "{BRAND_LINK}";];
>
> ];.
> ', 'http://product-open-data.org/temp <http://product-open-data.org/temp>',
> 'http://product-open-data.org/temp <http://product-open-data.org/temp>', 0);
>
> exec ('sparql ' || DB.DBA.R2RML_MAKE_QM_FROM_G
> ('http://product-open-data.org/temp
> <http://product-open-data.org/temp>','http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01')
>
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01')>);
>
>
> SPARQL Select * from
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01>>
> where {?s ?o ?p.} limit 1000000;
>
>
> My problem is following I want to get TTL file with this procedure
> <http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtRDFDatasetDump>
> .
> But when I run this procedure like this in iSQL
>
> SQL>
> DB.DBA.dump_one_graph('http://linked.opendata.cz/resource/dataset/product-o
> <http://linked.opendata.cz/resource/dataset/product-o>
> pen-data.org/2014-01-01
> <http://pen-data.org/2014-01-01>','../R2RML/pod_',1000000000);
>
> But only thing I get is this
>
> # Dump of graph
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01
> <http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01>>,
> as of 2014-11-11 23:46:48.000004
>
> So my question is where is my triples stored and why is SPARQL SELECT
> returning result set while DUMP_ONE_GRAPH isnt?
>
> Thank you.
>
> Kind regards
>
> Jakub Káňa
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________
>
> <http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________>
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users