Hi Hugh,this does not work unfortunately, I get the exact same issue running
your query on my local Virtuoso sparql endpoint:
plabelhttp://purl.org/dc/terms/subject"Subject"@enhttp://dbpedia.org/ontology/PopulatedPlace/areaTotal"Subject"@enhttp://dbpedia.org/ontology/abstract"Subject"@enhttp://dbpedia.org/ontology/areaCode"Subject"@en
In fact, that is the reason why I ended downloading the mapping-based
properties DBpedia data set http://wiki.dbpedia.org/Downloads39#h283-1 hoping
that it would solve things but there are no property labels there. Maybe there
are other data sets I could download that would solve this issue but I haven't
been able to identify one.
I really don't get it why I have this issue. It is very puzzling :/ Any
ideas?Thanks!Jaana
Subject: Re: [Virtuoso-users] DBpedia SERVICE queries acting unexpectedly
From: hwilli...@openlinksw.com
Date: Thu, 31 Jul 2014 02:52:39 +0100
CC: virtuoso-users@lists.sourceforge.net
To: jaana...@hotmail.com
Hi Janna,
What datasets are loaded in your local Virtuoso instance as I see you
reference the <http://dbpedia.org> graph in it , so do you already have some
DBpedia datasets loaded ?
Note the query you are running locally is not the same as what you are running
against the canonical dbpedia endpoint ie http://dbpedia.org/sparql, which
should be:
SELECT distinct ?p ?label WHERE{ SERVICE <http://dbpedia.org/sparql>
{<http://dbpedia.org/resource/Tallinn> ?p ?o . ?p rdfs:label ?label . FILTER
(lang(?label) = 'en') }}limit 10
ie all triple patterns should be in the "SERVICE" part for remote execution,
unless you have local DBpedia data load in which case I would suggest it does
not contain the expected data possibly ?
See following live example from our LOD Server that works:
http://lod.openlinksw.com/sparql/?default-graph-uri=&qtxt=SELECT+distinct+%3Fp+%3Flabel+%0D%0AWHERE%0D%0A%7B%0D%0A++++%0D%0A++++SERVICE+%3Chttp%3A%2F%2Fdbpedia.org%2Fsparql%3E+%7B%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FTallinn%3E+%3Fp+%3Fo+.+%3Fp+rdfs%3Alabel+%3Flabel+.+FILTER+%28lang%28%3Flabel%29+%3D+%27en%27%29+%7D%0D%0A%7D%0D%0Alimit+10&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on
Short URL: http://bit.ly/XhuK2o
Best RegardsHugh WilliamsProfessional ServicesOpenLink Software, Inc. //
http://www.openlinksw.com/Weblog --
http://www.openlinksw.com/blogs/LinkedIn --
http://www.linkedin.com/company/openlink-software/Twitter --
http://twitter.com/OpenLinkGoogle+ --
http://plus.google.com/100570109519069333827/Facebook --
http://www.facebook.com/OpenLinkSoftwareUniversal Data Access, Integration, and
Management Technology Providers
On 30 Jul 2014, at 17:30, Jaana Takis <jaana...@hotmail.com> wrote:Hi!
For a few days now I have tried to make the following query work on my local
Open Source Virtuoso and it does not produce the expected results, I am at loss
as what to do!
SELECT distinct ?p ?label FROM <http://dbpedia.org>WHERE{
<http://dbpedia.org/resource/Tallinn> ?p ?o . SERVICE
<http://DBpedia.org/sparql> { ?p rdfs:label ?label . FILTER (lang(?label) =
'en') }}limit 10
When I execute this then I get repetitive labels and I don't understand
why:plabelhttp://dbpedia.org/ontology/areaCode"area
code"@enhttp://dbpedia.org/ontology/elevation"area
code"@enhttp://dbpedia.org/ontology/isPartOf"area
code"@enhttp://dbpedia.org/ontology/leaderParty"area code"@en
Yet, when I run a similar kind of query on DBpedia, the output is as
expected:plabeldbpedia:ontology/PopulatedPlace/areaTotal "area total
(km2)"@endbpedia:ontology/abstract "has abstract"@endbpedia:ontology/areaCode
"area code"@endbpedia:ontology/areaTotal "area total (m2)"@en
The local graph I have here is a DBpedia dump of mappings but it really does
not seem to matter in this case, I could run both the queries remotely and I
still get repetitive labels.
What am I missing here?Any help much
appreciated!Jaana------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users