S pozdravem a přáním pěkného dne Jakub Káňa
---------- Přeposlaná zpráva ----------
Od: "Jakub Káňa" <jakubk...@gmail.com>
Datum: 11.11.2014 23:52
Předmět: Where is my triples stored?
Komu: "Hugh Williams" <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>;
SPARQL clear graph <
http://linked.opendata.cz/resource/dataset/product-open-data.org/2014-01-01
>;
DB.DBA.TTLP ('
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix s: <http://schema.org/> .
@prefix pod: <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}";
rr:class gr:Brand;
rr:graph <
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',
0);
exec ('sparql ' || DB.DBA.R2RML_MAKE_QM_FROM_G ('
http://product-open-data.org/temp','
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>
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
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>,
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
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users