virtuoso Questions - Semantic Overflow most recent 30 from http://www.semanticoverflow.com 2010-07-31T08:22:20Z http://www.semanticoverflow.com/feeds/tag/virtuoso http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://www.semanticoverflow.com/questions/1217/sort-by-date-optimizations-on-large-dataset Sort by date optimizations on large dataset Jeremy French 2010-07-08T13:31:16Z 2010-07-09T13:12:18Z <p>I'm trying to get the most recent articles on a subject out of <a href="http://pubmed.bio2rdf.org/sparql" rel="nofollow">http://pubmed.bio2rdf.org/sparql</a>. I can get a list of articles on a subject but as soon as I try to order by date the request times out.</p> <p>This is the query I am using:</p> <pre><code>select ?s ?created ?title where {?s &lt;http://bio2rdf.org/pubmed_resource:meshref&gt; _:cite. _:cite &lt;http://bio2rdf.org/pubmed_resource:descriptor&gt; &lt;http://bio2rdf.org/mesh:Neoplasms&gt;. ?s &lt;http://purl.org/dc/terms/created&gt; ?created. ?s &lt;http://purl.org/dc/terms/title&gt; ?title. ?s &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://bio2rdf.org/pubmed:JournalArticle&gt;. } order by desc (?created) </code></pre> <p>If I remove the order by clause I get resuts, with the order by clause it times out. I guess it is having to do a full text scan of the nodes does anyone have an idea how to optimize it?</p> <p>Limit dosn't seem to make a difference. </p> <p>I was thinking of limiting the graph, but it looks like each JournalArticle is a seperate graph.</p> http://www.semanticoverflow.com/questions/1059/how-to-set-up-a-clustered-virtuoso-on-debian-ubuntu How to set up a clustered Virtuoso on Debian/Ubuntu? Egon Willighagen 2010-06-23T12:42:22Z 2010-06-24T00:12:54Z <p><a href="http://www.semanticoverflow.com/users/468/cygri" rel="nofollow">Cygri</a> mentioned in reply to the question <a href="http://www.semanticoverflow.com/questions/1053/distributed-triple-stores" rel="nofollow">Distributed triple stores</a> that <a href="http://en.wikipedia.org/wiki/Virtuoso" rel="nofollow">Virtuoso</a> can be set up in a clustered mode. How would one do this using the Virtuoso that comes with <a href="http://packages.debian.org/testing/virtuoso-opensource" rel="nofollow">Debian</a> or <a href="http://packages.ubuntu.com/lucid/virtuoso-opensource" rel="nofollow">Ubuntu</a>? Please provide detailed configuration scripts.</p> http://www.semanticoverflow.com/questions/977/how-do-i-delete-a-named-graph-in-virtuoso How do I delete a named graph in Virtuoso? Sandeep 2010-06-10T01:25:36Z 2010-06-10T22:55:43Z <p>Hello,<br> This is a simple question but I couldn't find any information. Once I have loaded a graph using RDF_LOAD_XML_MT how do I go about delete it. </p> <p>Thanks<br> Sandeep</p> http://www.semanticoverflow.com/questions/954/strange-query-time-estimation-on-dbpedia-sparql-endpoint Strange query-time estimation on dbpedia sparql endpoint friism 2010-06-06T20:10:44Z 2010-06-07T05:12:34Z <p>Take these two queries:</p> <pre><code>SELECT distinct ?name WHERE { optional { ?redirect dbpedia2:redirect &lt;http://dbpedia.org/resource/Lionel_Messi&gt;. ?redirect rdfs:label ?name. } . optional { &lt;http://dbpedia.org/resource/Lionel_Messi&gt; foaf:name ?name } . } SELECT ?name WHERE { optional { ?redirect dbpedia2:redirect &lt;http://dbpedia.org/resource/Lionel_Messi&gt;. ?redirect rdfs:label ?name. } . optional { &lt;http://dbpedia.org/resource/Lionel_Messi&gt; foaf:name ?name } . } </code></pre> <p>They differ only in the use of 'distinct' in the select. Note the dual use of the ?name variable (this is to make using the result easier). The bottom query work great on dbpedia, the top one nets a '42000 Error The estimated execution time 29959 (sec) exceeds the limit of 1500 (sec).' The size of the result is not very great, so the 'distinct' operation should not be costly.</p> <p>I can distinctify the results just fine on my own, I'm just curious about the SPARQL engines' reasoning.</p> http://www.semanticoverflow.com/questions/947/dbpedia-sparql-endpoint-xsddate-comparison-weirdness DBPedia SPARQL Endpoint xsd:date comparison weirdness friism 2010-06-04T14:08:53Z 2010-06-05T07:14:25Z <p>I'm trying to find persons (soccer players) in DBPedia by name and birthdate. This returns one result (expected):</p> <pre><code>SELECT ?player ?birth { ?player a dbpedia-owl:SoccerPlayer . ?player foaf:name "Daniel Agger"@en . ?player dbpedia2:birth ?birth . FILTER(?birth &lt;= "1984-12-13"^^xsd:date) . FILTER(?birth &gt;= "1984-12-11"^^xsd:date) . } Limit 10 </code></pre> <p>This returns no results:</p> <pre><code>SELECT ?player ?birth { ?player a dbpedia-owl:SoccerPlayer . ?player foaf:name "Daniel Agger"@en . ?player dbpedia2:birth ?birth . FILTER(?birth &lt;= "1984-12-12"^^xsd:date) . FILTER(?birth &gt;= "1984-12-12"^^xsd:date) . } Limit 10 </code></pre> <p>Neither does this:</p> <pre><code>SELECT ?player ?birth { ?player a dbpedia-owl:SoccerPlayer . ?player foaf:name "Daniel Agger"@en . ?player dbpedia2:birth ?birth . FILTER(?birth = "1984-12-12"^^xsd:date) . } Limit 10 </code></pre> <p>Is there something about the semantics of xsd:date comparison I don't get or is this a bug?</p> http://www.semanticoverflow.com/questions/750/how-to-get-started-with-virtuoso-universal-server-for-rdf-querying How to get started with virtuoso universal server for rdf querying. Shishya 2010-04-16T07:49:46Z 2010-04-16T07:57:56Z <p>How to get started with virtuoso universal server for rdf querying using sparql?</p> http://www.semanticoverflow.com/questions/678/comparisons-of-d2rq-and-virtuoso-rdf-mapping Comparisons of D2RQ and Virtuoso RDF Mapping? jsightler 2010-03-24T21:09:13Z 2010-03-25T14:11:47Z <p>Are there any detailed comparisons between the mapping capabilities of D2RQ vs. those of the wrapper system built into Virtuoso? It seems that the D2RQ package is fairly complete, but it would be interesting to see if someone has compared them in-depth in the past.</p> http://www.semanticoverflow.com/questions/563/virtuoso-reasoner-problem Virtuoso Reasoner Problem jsightler 2010-02-15T23:17:08Z 2010-02-16T13:50:16Z <p>I've run the following script against virtuoso CLI: sparql clear graph <a href="http://jenainftest/#" rel="nofollow">http://jenainftest/#</a>;</p> <pre><code>ttlp('@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;. @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;. @prefix contact: &lt;http://www.sciresexamplerdf.com/contact#&gt;. contact:firstName rdfs:subClassOf rdfs:Property; rdfs:domain contact:Person. contact:Person rdfs:subClassOf rdfs:Class. ', '', 'http://jenainftest/#'); rdfs_rule_set ('jenainftest_ttl2', 'http://jenainftest/#', 0); sparql define input:inference 'jenainftest_ttl2' select * where {?s ?v "B2_99" . ?s rdf:type &lt;http://www.sciresexamplerdf.com/contact#Person&gt;} ; </code></pre> <p>Input data was: contact:firstName "B2_99"</p> <p>I would have expected to receive at least one row in response (due to Virtuoso inferring the type from the input data), however I received zero responses. Removing the type data from the query results in the expected number of results.</p> <p>Is Virtuoso unable to infer type information based upon rdfs:properties?</p> http://www.semanticoverflow.com/questions/483/how-to-speed-up-rdftype-foobar-sparql-queries-by-virtuoso-tuning How to speed up rdf:type foo:Bar SPARQL queries by Virtuoso tuning? Egon Willighagen 2010-01-15T19:32:50Z 2010-01-19T02:07:03Z <p>I'm running SPARQL queries like:</p> <pre><code>prefix ch: &lt;http://pele.farmbio.uu.se/chembl/?&gt; select count(?s) where { ?s a ch:Compound . } </code></pre> <p>or any other 'a' query asking all Resources of a certain rdf:type, which is quite slow resulting in a time out... how can I get Virtuoso to be a bit speedier here? Can I <em>index</em> the store so that it more efficiently can return all resources <em>rdf:type some:Foo</em>?</p> http://www.semanticoverflow.com/questions/327/question-about-rdfizer-sponger-in-virtuoso-openlink-software Question about RDFizer Sponger in Virtuoso OpenLink Software Sashikiran Challa 2009-11-22T17:59:38Z 2009-11-22T21:01:29Z <p>Did any one here use Sponger cartridge available in virtuoso openlink software? I had installed virtuoso opensource triple store and am currently trying to use the sponger cartridge to convert an Atom feed into RDF/XML. I have an XSLT stylesheet for the transformation. The documentation provided for virtuoso-sponger says that Sponger is in built into SPARQL end point and that if a sparql query is written like say "select ?p from named <a href="http://example.com/atomfeed.xml" rel="nofollow">http://example.com/atomfeed.xml</a> option (get:soft "soft",get:method "GET") where {GRAPH ?g {?s ?p ?o}}", it would via HTTP go the specified link, call the sponger, extract the data and map it to a particular schema using a particular stylesheet. Now is it the GRDDL that should be used to point to the xsl stylesheet ? If I do not have a GRDDL tag in my atom feed how would I call a particular XSLT stylesheet? Can somebody who worked with virtuoso sponger help me in doing this. If you think this is not the relevant form to ask this question can you explain the importance of GRDDL.</p> <p>Thanks</p> http://www.semanticoverflow.com/questions/85/how-do-i-see-what-named-graphs-are-available-on-a-virtuoso-sparql-end-point How do I see what named graphs are available on a Virtuoso SPARQL end point? Egon Willighagen 2009-11-02T20:31:19Z 2009-11-03T06:10:34Z <p>Is it possible to list the named graphs using a SPARQL query?</p>