Questions tagged [linked-data]

Linked Data refers to a set of best practices for publishing data on the Web under the Semantic Web standards (RDF, SPARQL, etc.). Please consider asking your question on https://opendata.stackexchange.com, if your question is not closely related to programming or is related to a particular Linked Data dataset.

T. Berners-Lee outlines four principles of linked data in his "Linked Data" note:

  1. Use URIs as names for things
  2. Use HTTP URIs so that people can look up those names
  3. When someone looks up a URI, provide useful information, using the standards (RDF*, SPARQL)
  4. Include links to other URIs, so that they can discover more things
371 questions
1
vote
1 answer

Is it possible to use variables as integers in SPARQL property paths?

I am currently trying to create pointers to datatype values as they cannot be linked directly. However, I would like to be able to evaluate the pointers from within the SPARQL environment, which raised specifically in the case that the desired value…
AnnaWagner
  • 13
  • 2
1
vote
1 answer

How to improve the results from DBpedia Spotlight?

I am using DBpedia Spotlight to extract DBpedia resources as follows. import json from SPARQLWrapper import SPARQLWrapper, JSON import requests import urllib.parse ## initial consts BASE_URL =…
EmJ
  • 4,398
  • 9
  • 44
  • 105
1
vote
1 answer

How to get Wikidata ID for DBpedia Entities?

I have a set of DBpedia concepts and would like to get the corresponding wikidata IDs of them. For example, consider word2vec. The wikidata ID of word2vec is wd:Q22673982. Currently, I am doing it as follows. SELECT * { VALUES ?searchTerm {…
EmJ
  • 4,398
  • 9
  • 44
  • 105
1
vote
0 answers

Approximate matches from Wikidata

How do I call an API to query Wikidata for all matching results? E.g., if I query "Washington", I'll get back, among others, the entries for "Washington D.C.", "George Washington" and "Washington Irving"? Assuming this is possible, can I also do…
David Goldfarb
  • 1,796
  • 3
  • 18
  • 32
1
vote
1 answer

Difference between 'page' and 'resource' in DBpedia URLs

When I was digging DBpedia and trying to learn more about Linked Data, I have seen that DBpedia is redirecting from http://dbpedia.org/resource/Rome to http://dbpedia.org/page/Rome. I wasn't able to find any reason for that and I would like to…
Rinqt
  • 23
  • 3
1
vote
0 answers

Can a Predicate be assigned a type?

I want to model lots of flows across a lattice of nodes. The simple way is to simply model flow as a series of a flowsTo b relations - but this raises a problem where different flows cross a common lattice point, and what should remain as two…
Thomas Kimber
  • 10,601
  • 3
  • 25
  • 42
1
vote
0 answers

RDF/OWL Modelling an association with a time-span

I'm trying to come up with the best way to model temporally sensitive relationships within RDF. Examples might be a "household" where there's a relationship between people living at a particular address - over the same period of time, or…
Thomas Kimber
  • 10,601
  • 3
  • 25
  • 42
1
vote
2 answers

Can a RDF statement have more than one subject?

If your answer to this question is yes, could you give me an example using the JSON-LD format?
Liam
  • 33
  • 4
1
vote
1 answer

Convert URI to IRI using R?

I am creating RDF Linked Data using R. Right now I have URI's like: test:Value_ONE%20OR%20TWO I instead want to create IRIs using the proper encoding. Conversion of URIs to IRIs is described here:…
Tim
  • 929
  • 12
  • 30
1
vote
0 answers

Why does identifiers.org forward to addresses that do not contain linked data?

For example, if I want to link to a dbSNP identifier: rs936126, I link using identifiers.org to this URI: http://identifiers.org/dbsnp/rs936126, which then forwards me to this address:…
lrthistlethwaite
  • 494
  • 2
  • 6
  • 23
1
vote
1 answer

Why do web browsers change file IRIs?

The standard for file IRIs (https://www.rfc-editor.org/rfc/rfc8089) makes a distinction between file IRIs with no authority [1] and file IRIs with empty authority [2]. Modern web browsers (tested on Firefox and Chrome) automatically change [1] to…
Wouter Beek
  • 3,307
  • 16
  • 29
1
vote
1 answer

How to get associated (English) Wikipedia page from Wikidata page / Q number using Wikidata dump?

For @en text alone, a single item from the Wikidata dump contains multiple names: "Northern Ireland"@en .
zadrozny
  • 1,631
  • 3
  • 22
  • 27
1
vote
0 answers

SPARQL - least common ancestor

I am trying to create a query in SPARQL that: given two or more nodes (selected children) and their parent-child relationship, produces: least common parent among selected children shortest paths to least common parent from each child I am doing…
Igor Malin
  • 652
  • 2
  • 8
  • 26
1
vote
2 answers

Finding a set that contains all values of an original set in a SPARQL query

I'm trying to build a SPARQL query that gets the students of one teacher and finds all the teachers with all those students (they can have more students). This is what I have so far: SELECT ?otherTeacher WHERE { VALUES ?teacher {$teacher} ?teacher…
Anthony T
  • 23
  • 4
1
vote
1 answer

How to make, in one SPARQL query, three independent queries on three different SPARQL endpoints?

is there a way that I can do three independent queries on on three different SPARQL endpoints, in one SPARQL query? For example, I have three SPARQL endpoints (i.e., url1, url2 and url3) and three independent queries I want to make, i.e., query1 on…