semantic-web

Can't retrieve movies with high IDs from LinkedMDB with SPARQL

折月煮酒 提交于 2019-12-19 08:52:24
问题 I'm running the following query at the LinkedMDB SPARQL endpoint and it works. With it, I get all the information that I need about the director of the movie with id 72, which is Titanic , so I get information about James Cameron. PREFIX mdb: <http://data.linkedmdb.org/resource/movie/> SELECT ?director?nombre_director?id_director WHERE { ?pelicula mdb:filmid ?id . ?pelicula <http://data.linkedmdb.org/resource/movie/director> ?director . ?director <http://data.linkedmdb.org/resource/movie

how can i add some triple to my Ontology by Jena?

笑着哭i 提交于 2019-12-18 13:39:24
问题 I have instance1 of class1 and instance2 of class2 . Also I have defined HasName(object property) in my ontology. Now, how can I add the triple ( instance1 HasName instance2 ) to my ontology by jena? 回答1: Here's a way without dealing with intermediate Statements . // RDF Nodes -- you can make these immutable in your own vocabulary if you want -- see Jena's RDFS, RDF, OWL, etc vocabularies Resource class1 = ResourceFactory.createResource(yourNamespace + "class1"); Resource class2 =

Is it possible to make property assertions on class level in OWL 2?

半城伤御伤魂 提交于 2019-12-18 09:28:45
问题 I have an OWL 2 ontology containing several named individuals belonging to a class that need to have the same object property with the same value. I would like to make this property assertion "on the class" in such a way that a reasoner could infer the property to be had by all of its members, thus without needing an explicit assertion for each. (obtaining something similar to a class-based object-oriented property inheritance) A simple example could be an ontology containing the individuals

Work around to query DBpedia for two keywords

一世执手 提交于 2019-12-18 06:58:09
问题 I want to query DBpedia for multiple keywords, apparently I have to search for an exact substring, so if I want the page about Egyptian Pyramids , searching for Egypt Pyramids won't work, but that's exactly what I need.. So I was thinking maybe I can see if the concept "Pyramids" has anything to do with "Egypt", by searching through the relations, but I am finding it difficult to come up with the sparql query needed for that BTW I query through: http://dbpedia.org/sparql 回答1: Trying to

Inferencing in protege

为君一笑 提交于 2019-12-18 05:17:13
问题 I have a simple ontology as follows <?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <!ENTITY assignment "http://www.semanticweb.org/shadowman/ontologies/2013/5/assignment#" > ]> <rdf:RDF xmlns="http://www.semanticweb.org/shadowman/ontologies/2013/5/assignment#" xml:base="http://www

Load DBpedia locally using Jena TDB?

梦想的初衷 提交于 2019-12-18 03:35:35
问题 I need to perform a query against DBpedia: SELECT DISTINCT ?poi ?lat ?long ?photos ?template ?type ?label WHERE { ?poi <http://www.w3.org/2000/01/rdf-schema#label> ?label . ?poi <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat . ?poi <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long . ?poi <http://dbpedia.org/property/hasPhotoCollection> ?photos . OPTIONAL {?poi <http://dbpedia.org/property/wikiPageUsesTemplate> ?template } . OPTIONAL {?poi <http://www.w3.org/1999/02/22-rdf-syntax-ns

Get all properties for a DBpedia class

♀尐吖头ヾ 提交于 2019-12-17 23:38:19
问题 How to get a list of properties for a specific class? Consider the class dbpedia-owl:Person. All instances of the Person class have some properties prefixed with dbpprop: . How can I get all the dbpprop: properties that we may find for all the instance of the Person class? 回答1: The one that works is: select distinct ?property where { ?property <http://www.w3.org/2000/01/rdf-schema#domain> <http://dbpedia.org/ontology/Person> . } In this query you are asking for all the properties that have

What is the semantic web? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-17 21:40:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I've heard a lot about the semantic web but I'm still not exactly sure what it is. How will it be different to the web we know now? 回答1: How will it be different to the web we know now? Right now the HTML+CSS is centered more on structure and presentation. Semantics is about the

Sparql insert data not working

女生的网名这么多〃 提交于 2019-12-17 20:55:20
问题 I'm a newbie to Sparql, but I am unable even to make a simple insert data query, or so it seems. I'm using Apache Fuseki as working server; I'm in a graph, and I'm trying to make this query work: PREFIX oa: <http://www.w3.org/ns/oa#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> INSERT DATA{ [ a oa:Annotation ; rdfs:label "Title"; ] . } But it doesn't matter what I do, I keep getting this error: Error 400: SPARQL Query: No 'query=' parameter This is even a semplified code, I tried many

Is there a way to convert the data format of an RDF vocabulary to SKOS

假装没事ソ 提交于 2019-12-17 19:29:58
问题 The rdfs file I'm want to use is cv.rdfs, I want to convert it to SKOS, so I can use it in Maui Indexer I am a complete noob in the subject. Please help. 回答1: SKOS is for organizing concepts, and doesn't deal with properties, it seems, so there's a lot of information in the CV RDFS that doesn't really have a SKOS version. However, it's easy enough to define a mapping for the RDFS classes and generate some data using SPARQL. Here's a possible mapping: rdfs:Class maps to skos:Concept. rdfs