Questions tagged [sparql]

SPARQL is a standardized query language for RDF and part of the Semantic Web.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
28 views

Find most-depicted Wikidata items that have no image

Wikimedia Commons has a new feature where a picture can have metadata saying it depicts a given Wikidata item. For instance, https://commons.wikimedia.org/wiki/File:Grandpark_Plaza.jpg depicts https:/...
3
votes
0answers
66 views

(How) Was SPARQL influenced by erotetics?

Erotetics is the logic of questions and answers. The field has been developed over the last hundred years and is nicely summarized by (Wisniewski 2015). How, if at all, was SPARQL, the RDF query ...
2
votes
0answers
38 views

SPARQL - Filter wikidata identifiers

Query below gives me all programming languages entities, with their statements. Problem is that I don't need identifiers now, but these IDs might become necessary. I was just gonna model database ...
2
votes
0answers
38 views

Wikidata SPARQL - get company entities and the location of their headquarters

I'm having trouble extracting location attributes of company HQ's. My query: finds all companies or sub-classes, and returns some basic properties such as ISIN and URL, and the Headquarter location. ...
2
votes
0answers
30 views

SPARQL query to get capacity of event venues from Wikidata

I am trying to query Wikidata to find out the capacities of all event venues in specific geographic regions (US urban centers). They have this service for querying: Wikidata Query Service The answer ...
2
votes
0answers
51 views

How to use wikidata property paths?

Given a term/concept, I want to decide if it belongs to computer science. For that, I am checking if the concept has a property path to computer science node. In other words, I am checking whether ...
2
votes
0answers
49 views

Querying Sparql dataset and caching results locally

During querying LOD datasets (using Sparql queries), we could face connection or server problems. Is there a reliable strategy that helps us to get data is a reliable way ? I'm looking for a tool (in ...
2
votes
0answers
89 views

Property and sub-property pairs

Here are some example records: https://www.wikidata.org/wiki/Q11361734 https://www.wikidata.org/wiki/Q74669 I have the following (updated) query: # Script #2 SELECT (GROUP_CONCAT( ?...
1
vote
0answers
21 views

How to get the path details between two nodes in DBpedia in SPARQL

I want to check if two DBpedia nodes have a path using; dct:subject and skos:broader properties without specifying properties For instance consider the two DBpedia nodes http://dbpedia.org/resource/...
1
vote
0answers
29 views

Wikidata SPARQL How to speed up this query?

I have come to this query, which retrieves wikipedia and wikidata info from a wikipedia title: SELECT ?wikipediaId ?wikipediaTitle ?wikidataId ?desc ?imageUrl (GROUP_CONCAT(?instanceOfS; SEPARATOR=";"...
1
vote
0answers
29 views

Wikidata Sparql Getting properties from a Wikipedia generator list

I am trying to get the properties that the linked pages from a wikipedia page have. SELECT ?item ?wikipediaTitle ?target WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint "en....
0
votes
0answers
16 views

How come there are missing entities in this SPARQL query?

I was interested in listing all books, so I wrote: SELECT ?book ?url WHERE { ?book wdt:P31 wd:Q571 . OPTIONAL { ?url schema:about ?book . ?url schema:inLanguage "en" . ?url schema:isPartOf <...
0
votes
0answers
14 views

GeoSPARQL query that filters locations outside polygon (Wikidata)

I want to get all venues that have the 'maximum_capacity' property (P1083), and then I want to filter them by whether or not their lat/lon attribute intersects some polygon. I am trying to follow ...
0
votes
0answers
11 views

Wiki Sparql difference between wikibase:apiOutput and wikibase:apiOutputItem?

Reading https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI#Find_articles_in_Wikipedia and trying some queries, I have come to the question: What is the difference between "...