sparql

Error in SPARQL Query

放肆的年华 提交于 2019-12-13 20:51:46
问题 I'm getting an error with my SPARQL query but can't find it out: Query PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> PREFIX : <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX dbpedia: <http://dbpedia.org/> SELECT DISTINCT ?lat, ?long { :Taj_Mahal

Endpoint returned Content-Type: text/html which is not rcognized for SELECT queries

断了今生、忘了曾经 提交于 2019-12-13 20:38:03
问题 This is the original question (This is the 2nd part). I'm using HyperGraphQL to query the EBI-RDF sparql endpoint based on this tutorial. When I execute this GraphQL query to retrieve the parents of GO_0044727 : { Class_GET_BY_ID(uris:[ "http://purl.obolibrary.org/obo/GO_0044727"]) { id label subClassOf { id label subClassOf { id label subClassOf { # <--- 4th sub level id label } } } } } I got no results: { "extensions": {}, "data": { "@context": { "_type": "@type", "_id": "@id", "label":

Extracting postcodes, LSOA codes and IMD - SPARQL

余生颓废 提交于 2019-12-13 20:17:13
问题 I am writing a code to extract the following data with SPARQL: POSTCODE, LSOA, and IMD (Index of Multiple Deprivation). I managed to get close to this using two different calls but the approach isn't really what I am looking for because it requires additional matching in R. The first call is described in another stackoverflow question: SELECT * WHERE { ?postcodeUnit a <http://data.ordnancesurvey.co.uk/ontology/postcode/PostcodeUnit>; <http://opendatacommunities.org/def/geography#lsoa> ?lsoa .

Explanation about Direct Mapping to convert Many-to-Many relationship

僤鯓⒐⒋嵵緔 提交于 2019-12-13 19:01:45
问题 One of the standards from W3C for RDB2RDF is Direct Mapping. I heard that there is a problem when converting many-to-many relationship from a relational database and they say it loses semantic, I need more explanation about it. 回答1: ...there is a problem when converting many-to-many relationship from a relational database I'd say that direct mapping introduces additional "parasitic" semantics, treating normalization artefacts as first-class object. Let's consider the D011-M2MRelations

Localhost error Fuseki-service Ubuntu

删除回忆录丶 提交于 2019-12-13 18:34:08
问题 We've installed Fuseki2 as a service at a Ubuntu-server and its works fine: sudo service fuseki status * Fuseki is running with pid: 915 I now can go to http://xyz:30303/manage.html (where xyz it the ip-address of the server) and it shows the Manage datasets screen, but nothing happens when I click add new dataset . Console browser (and also http://xyz:3030/$/server ) gives " Failed to load resource: the server responded with a status of 403 (Access denied : only localhost access allowed) "

How to find all Wikipedia pages which are members two given categories using DBpedia?

。_饼干妹妹 提交于 2019-12-13 18:26:31
问题 I dabbled with DBpedia a couple of years ago and find it fascinating, but now that I want to perform a query after not using it for ages, I find it totally impenetrable. What SPARQL query should I issue to retrieve the set of all Wikipedia pages that are members of both "Category ABC" and "Category XYZ"? All of the examples I can find seem to be quite a bit more involved than my seemingly basic question, making it difficult to distil something minimal. (As an example I'd like to find all

How to filter results of wikidata to specific language

a 夏天 提交于 2019-12-13 18:04:15
问题 I have a query to get all Capitals. (Capital Cities) SELECT DISTINCT ?Stadt ?label ?Staat ?StaatLabel ?geographische_Koordinaten ?StadtLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?Stadt wdt:P31 wd:Q5119. ?Stadt rdfs:label ?label. OPTIONAL { ?Stadt wdt:P17 ?Staat. } OPTIONAL { ?Stadt wdt:P625 ?geographische_Koordinaten. } } LIMIT 100 Try it here and the result is: wd:Q61 Washington D.C. wd:Q30 Vereinigte Staaten Point(-77.036666666 38.895)

Should queries with URIs like http://pt.dbpedia.org/resource/.. be different from the ones with URIs like http://dbpedia.org/resource/..?

两盒软妹~` 提交于 2019-12-13 17:20:54
问题 I'm making that SPARQL query: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?label WHERE { <http://pt.dbpedia.org/resource/Brasil> rdfs:label ?label.} and I don't get any results for ?text . I checked that URI on my browser and found the rdfs:label property there. Is that problem caused by the URI form http://pt.dbpedia.org/ ? I've already used the same query with IRIs starting with http://dbpedia.org/resource/ , e.g.,

JavaScript for Apache Jena TripleStore

杀马特。学长 韩版系。学妹 提交于 2019-12-13 17:19:01
问题 i've build a TDB-Store with Apache Jena and now i want to use the data from my store to implement some nice visualizations. So after all it's necessary to access my TDB with JavaScript. I guess, there are two possibilities to archieve this: No. 1: Run a Fuseki Server and run sparql queries on it's endpoint (i.e. http://localhost:3030/dataset/sparql ). How can i query this endpoint with js? No. 2: Access the TDB directly from js. Is this possible? Thanks in advance, FFoDWindow 回答1: I was able

Querying the Linked Movie Database (LMDB) with SPARQL

馋奶兔 提交于 2019-12-13 14:09:43
问题 Given an RDF graph like this: :Matrix [rdfs:label] :The Matrix . :Matrix [movie:id] :23 . :Matrix [movie:actor] :Keanu Reaves . :Matrix [movie:actor] :Laurence Fishburne . :Die Hard 3 [rdfs:label] :Die Hard 3 . :Die Hard 3 [movie:id] :42 . :Die Hard 3 [movie:actor] :Bruce Willis . :Die Hard 3 [movie:actor] :Samuel L. Jackson . and a query like this: SELECT ?id ?name ?actor WHERE { ?instance movie:id ?id . ?instance rdfs:label ?name . ?instance movie:actor ?actor . } I would expect a result