semantic-web

How do I define relation properties in OWL?

风流意气都作罢 提交于 2021-02-19 02:12:59
问题 In my ontology I have individuals "pic Joan" which is an instance of concept "mountain" and "port Cerbère" which is an instance of concept "village". I have the relation "dominates" going from "pic Joan" to "port Cerbère" (in the sense that the mountain is perceived as being close and above the village, and hence "dominates it"). But in fact, I need to represent the information "pic Joan dominates port Cerbère at a distance of 1.5 miles NW". So, logically, I would need to attach to the

How do I define relation properties in OWL?

此生再无相见时 提交于 2021-02-19 02:10:22
问题 In my ontology I have individuals "pic Joan" which is an instance of concept "mountain" and "port Cerbère" which is an instance of concept "village". I have the relation "dominates" going from "pic Joan" to "port Cerbère" (in the sense that the mountain is perceived as being close and above the village, and hence "dominates it"). But in fact, I need to represent the information "pic Joan dominates port Cerbère at a distance of 1.5 miles NW". So, logically, I would need to attach to the

How to use DBpedia properties to build a topic hierarchy?

佐手、 提交于 2021-02-07 08:19:59
问题 I am trying to build a topic hierarchy by following the below mentioned two DBpedia properties. skos:broader property dcterms:subject property My intention is to given the word identify the topic of it. For example, given the word; 'suport vector machine', I want to identify topics from it such as classification algorithm, machine learning etc. However, sometimes I am bit confused as how to build a topic hierarchy as I am getting more than 5 URIs for subject and many URIs for broader

Using sh:maxExclusive to compare (the values of) two datatype properties

一个人想着一个人 提交于 2021-01-29 07:30:31
问题 Connected to this question: I cannot use sh:lessThan with xsd:positiveInteger Indeed, I managed to make my example working by writing: sh:property [ sh:path ontology:has-age ; sh:maxExclusive 16 ; ] ; However, now I would like to compare the value of "ontology:has-age" not with a constant but with the value of another datatype property defined on the same individual (and having 16 as value): ontology:John rdf:type ontology:DataSubject ; ontology:has-age "14"^^xsd:positiveInteger ; ontology

Convert a Jena ResultSet to Model

牧云@^-^@ 提交于 2021-01-27 13:58:40
问题 I'm trying to convert a ResultSet to a Model in Apache Jena 3.0. Previously I used the ResultSetFormatter.toModel function, but this seems to have been removed. What's the best way currently to get a Model (for serialization to JSON-LD and RDF/XML) of the ResultSet? 回答1: RDFOutput.toModel ResultSetFormatter operations were deprecated in jena 2.13.0 with placeholders left behind and javadoc referring to RDFOutput . 来源: https://stackoverflow.com/questions/32157314/convert-a-jena-resultset-to