Hi -
I have this problem with a CONSTRUCT query that I get out of memory errors on 
and I don't really understand how and I was wondering if some of you could help 
me understand why.

The reason I don't understand it is that the query works up until I add a new 
triple to the query. What I mean is that it works if you remove the line 
`dbpedia-owl:abstract ?abstract.` (and replace the previous `;` with `.`). 

How I see it the query should be able to run and return a result, especially 
since a more general query does. Perhaps I just don't understand the execution 
sequence of a sparql-query and that is the problem I am having? 

Regards,
Bjarte Johansen

---


PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX : <http://dbpedia.org/resource/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX test: <test/>
CONSTRUCT {
 ?loc rdfs:label ?label;
      geo:lat ?lat;
      geo:long ?long;
      dbpedia-owl:abstract ?abstract;
      foaf:isPrimaryTopicOf ?source;
      dcterms:subject ?subject;
      ?relation ?second.

 ?second rdfs:label ?label2;
         dbpedia-owl:abstract ?abstract2.

 ?subject rdfs:label ?topic.

} WHERE {
 ?loc geo:lat ?lat;
      geo:long ?long;
      dbpedia-owl:abstract ?abstract;
      dcterms:subject ?subject;
      foaf:isPrimaryTopicOf ?source;
      rdfs:label ?label.

 ?subject rdfs:label ?topic.

 ?loc ?relation ?second.
 ?second rdfs:label ?label2;
         dbpedia-owl:abstract ?abstract2.


 FILTER ( langMatches(lang(?label), "en") ).
 FILTER ( langMatches(lang(?abstract), "en") ).
 FILTER ( langMatches(lang(?topic), "en") ).
 FILTER ( langMatches(lang(?abstract2), "en") ).
 FILTER ( langMatches(lang(?label2), "en") ).
 FILTER (?long > 5.3 && 5.4 > ?long).
 FILTER (?lat > 60.38 && ?lat < 60.40).
 FILTER NOT EXISTS {
   ?loc rdf:type dbpedia-owl:City.
 }
 FILTER NOT EXISTS {
       ?loc owl:sameAs ?second.
 }
}
> 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to