virtuoso Questions - Semantic Overflowmost recent 30 from http://www.semanticoverflow.com2010-07-31T08:22:20Zhttp://www.semanticoverflow.com/feeds/tag/virtuosohttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://www.semanticoverflow.com/questions/1217/sort-by-date-optimizations-on-large-datasetSort by date optimizations on large datasetJeremy French2010-07-08T13:31:16Z2010-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 <http://bio2rdf.org/pubmed_resource:meshref> _:cite.
_:cite <http://bio2rdf.org/pubmed_resource:descriptor> <http://bio2rdf.org/mesh:Neoplasms>.
?s <http://purl.org/dc/terms/created> ?created.
?s <http://purl.org/dc/terms/title> ?title.
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://bio2rdf.org/pubmed:JournalArticle>.
}
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-ubuntuHow to set up a clustered Virtuoso on Debian/Ubuntu?Egon Willighagen2010-06-23T12:42:22Z2010-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-virtuosoHow do I delete a named graph in Virtuoso?Sandeep2010-06-10T01:25:36Z2010-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-endpointStrange query-time estimation on dbpedia sparql endpointfriism2010-06-06T20:10:44Z2010-06-07T05:12:34Z
<p>Take these two queries:</p>
<pre><code>SELECT distinct ?name WHERE {
optional {
?redirect dbpedia2:redirect <http://dbpedia.org/resource/Lionel_Messi>.
?redirect rdfs:label ?name.
} .
optional { <http://dbpedia.org/resource/Lionel_Messi> foaf:name ?name } .
}
SELECT ?name WHERE {
optional {
?redirect dbpedia2:redirect <http://dbpedia.org/resource/Lionel_Messi>.
?redirect rdfs:label ?name.
} .
optional { <http://dbpedia.org/resource/Lionel_Messi> 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-weirdnessDBPedia SPARQL Endpoint xsd:date comparison weirdnessfriism2010-06-04T14:08:53Z2010-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 <= "1984-12-13"^^xsd:date) .
FILTER(?birth >= "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 <= "1984-12-12"^^xsd:date) .
FILTER(?birth >= "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-queryingHow to get started with virtuoso universal server for rdf querying.Shishya2010-04-16T07:49:46Z2010-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-mappingComparisons of D2RQ and Virtuoso RDF Mapping?jsightler2010-03-24T21:09:13Z2010-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-problemVirtuoso Reasoner Problem jsightler2010-02-15T23:17:08Z2010-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: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix contact: <http://www.sciresexamplerdf.com/contact#>.
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 <http://www.sciresexamplerdf.com/contact#Person>}
;
</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-tuningHow to speed up rdf:type foo:Bar SPARQL queries by Virtuoso tuning?Egon Willighagen2010-01-15T19:32:50Z2010-01-19T02:07:03Z
<p>I'm running SPARQL queries like:</p>
<pre><code>prefix ch: <http://pele.farmbio.uu.se/chembl/?>
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-softwareQuestion about RDFizer Sponger in Virtuoso OpenLink SoftwareSashikiran Challa2009-11-22T17:59:38Z2009-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-pointHow do I see what named graphs are available on a Virtuoso SPARQL end point?Egon Willighagen2009-11-02T20:31:19Z2009-11-03T06:10:34Z
<p>Is it possible to list the named graphs using a SPARQL query?</p>