semantic-web

Querying DBPedia for entities having a given set of properties

强颜欢笑 提交于 2019-12-24 13:26:14
问题 I have a list of somewhere between 5 and 100 properties and want to query for any entities having these properties (not interested in the values), ranged by most matches. How can this be achieved with a SPARQL query? For instance, say I have the following properties: dbpedia-owl:country dbpedia-owl:elevation dbpedia-owl:leader dbpprop:area dbpprop:flag dbpprop:name … The query should return all resources having values for all of these these properties, as well as resources that match just

Adding a toolbar to a table following HTML semantics

大兔子大兔子 提交于 2019-12-24 10:11:09
问题 I have a basic HTML table like so: <table> <thead> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> I want to add a toolbar above it. Would it be semantically acceptable to add a toolbar as a row in the thead ? <table> <thead> <tr> <th colspan="2"> <!-- toolbar buttons --> </th> </tr> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> 回答1: IMHO, since the toolbar is related to the tabular data, I see

Defining a relationship between a country and a recipe with Schema

我是研究僧i 提交于 2019-12-24 09:38:49
问题 I am building a web page that lists typical dishes for each individual country. Each dish is put in its own article and all of that goes fine. But I wonder if there is a way to link the Recipe s to the country. Does it make sense to also specify the country with http://schema.org/Country, and if so how can I link that to the dishes? I thought about defining the main as a country, and then using http://schema.org/additionalProperty but that doesn't seem to make sense as it expects a

Uniform way to add multiple descriptive properties in Schema

有些话、适合烂在心里 提交于 2019-12-24 07:37:51
问题 We use Schema.org 'types' and 'properties' to organize many kinds of data. The application is driven by the vocab and structure of Schema.org, rather than it uses schema.org for SEO. The application structures and relates finished and unfinished works of creative people like scientists, artists, composers etc. Their efforts are not limited to "Creative works" such as articles and artworks, but include also organizations, companies, events and products initiated by them. Starting this year, we

Adding an OPTIONAL clause to a SPARQL query using Jena ARQ

老子叫甜甜 提交于 2019-12-24 05:41:14
问题 Is it possible to programmatically add an OPTIONAL clause to a SPARQL query using the Jena ARQ API? I would like to programmatically take this query: select ?concept ?p ?o where {?s ?p ?o . } limit 10 To this: SELECT ?concept ?p ?o ?test WHERE { ?s ?p ?o OPTIONAL { ?concept <http://www.test.com/test> ?test } } LIMIT 10 Through ARQ it's simple to add the additional result variable ?test : Query q = QueryFactory.create(query) query.addResultVar(var); But from what I've found in the API docs and

How rdf:Bag, rdf:Seq and rdf:Alt is different while using them?

折月煮酒 提交于 2019-12-24 05:26:05
问题 I'm reading the RDF Schema 1.1 recommendation, which includes the following (emphasis added): 5.1.2 rdf:Bag The rdf:Bag class is the class of RDF 'Bag' containers. It is a subclass of rdfs:Container. Whilst formally it is no different from an rdf:Seq or an rdf:Alt, the rdf:Bag class is used conventionally to indicate to a human reader that the container is intended to be unordered. 5.1.3 rdf:Seq The rdf:Seq class is the class of RDF 'Sequence' containers. It is a subclass of rdfs:Container.

mapping between two ontologies

狂风中的少年 提交于 2019-12-24 04:56:09
问题 How could I use owl:sameas to link between two ontologies? If I have Ontology A :c rdf:type owl:Class . and Ontology B :d rdf:type owl:Class . I want to link the two ontologies with the shared concepts (:c and :d), I've read about owl:sameas but that is used inside only one ontology between instances of similar classes within the ontology. I would like to link between class :c and class :d of the two ontologies, what is the solution for that? 回答1: I've read about owl:sameas but that is used

how to create aggregation on a graph from CONSTRUCT

倖福魔咒の 提交于 2019-12-24 00:54:49
问题 This is my query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rs: <http://www.welovethesemanticweb.com/rs#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> construct { ?subject0 rs:similarityValue ?similairty0. ?subject1 rs:similarityValue ?similairty1 } WHERE { { ?subject0 ?predicate0 ?object0. rs:Impromptu_No._1 ?predicate0 ?object0. ?predicate0 rs:hasSimilarityValue ?similairty0Helper. BIND(?similairty0Helper * (4/9) AS ?similairty0) FILTER (?subject0 != rs

Reflexive property in protege

為{幸葍}努か 提交于 2019-12-24 00:35:37
问题 This is my ontology created with protege 5 . If i make cl1 and cl2 disjoint, then the ontology is being inconsistent , but if i uncheck is_friend_of reflexive , the ontology is not inconsistent any more . whats wrong with my ontology ? I want only cl1 class individuals have is_friend_of property. 回答1: Reflexivity of :is_friend_of is essential for inconsistency. Take a look at Reasoner > Inconsistent ontology explanation : I'll try to translate this explanation into (poor) English: Since :is

Fuseki owl reasoner not working with TDB

半世苍凉 提交于 2019-12-23 23:24:31
问题 This is my configuration file # Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 ## Fuseki Server configuration file. @prefix : <#> . @prefix fuseki: <http://jena.apache.org/fuseki#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . [] rdf:type fuseki:Server ; fuseki:services ( <#service1> ) . #