ontology

What is an Ontology (Database?)?

元气小坏坏 提交于 2019-12-29 14:17:25
问题 I was just reading this article and it mentions that some organization had an Ontology as(?) their database(?) layer, and that the decision to do this was bad. Problem is I hadn't heard about this before, so I can't understand why it's bad. So I tried googling about databases and ontology, and came about quite a few pdfs from 2006 that we're full of incomprehensible content (for my mind). I read a few of these and at this point still have absolutely no idea what they are talking about. My

What is an Ontology (Database?)?

主宰稳场 提交于 2019-12-29 14:16:26
问题 I was just reading this article and it mentions that some organization had an Ontology as(?) their database(?) layer, and that the decision to do this was bad. Problem is I hadn't heard about this before, so I can't understand why it's bad. So I tried googling about databases and ontology, and came about quite a few pdfs from 2006 that we're full of incomprehensible content (for my mind). I read a few of these and at this point still have absolutely no idea what they are talking about. My

How to group array based on the same values

删除回忆录丶 提交于 2019-12-26 17:30:11
问题 Please, confused with array in python. I want to group array based on the same values. Code: enter image description here id_disease = ['penyakit_tepung','hawar_daun'] for id_disease in id_disease: qres = acacia.query( """ PREFIX tst: <http://www.semanticweb.org/aalviian/ontologies/2017/1/untitled-ontology-10#> SELECT ?disease ?patogen WHERE { ?disease tst:caused_by ?patogen . FILTER regex(str(?disease), "%s") . } """ % id_disease ) for row in qres: for r in row: print(r.replace('http://www

how to find classes from dbpedia?

三世轮回 提交于 2019-12-25 18:33:51
问题 I need a sparql query that given a free text (user input), it finds me from dbpedia all the classes related to it. How do it? 回答1: Also asked here. Accepted answer said -- When you say classes, are you mean about types? If yes, try something like SELECT ?uri ?label ?type WHERE { ?uri rdfs:label ?label . ?uri <http://dbpedia.org/ontology/type> ?type . FILTER regex(str(?label), "Leipzig") . } limit 10 I couldn't let this go... PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX virtdrf:

How to convert arelational data base into an ontology (owl)

不打扰是莪最后的温柔 提交于 2019-12-25 08:48:43
问题 I want to convert a relational data base into an ontology. Which the best tool for doing that? 回答1: You should look into R2RML. The direct mappings are a pretty easy way to quickly convert relational data into RDF. 来源: https://stackoverflow.com/questions/43740648/how-to-convert-arelational-data-base-into-an-ontology-owl

Type inference using class expresions on Protege

柔情痞子 提交于 2019-12-25 02:35:29
问题 I was hoping I could defined Elective_Course in such a way that all individuals that are partOf a Knowledge_Unit and are not of type Core_Course are Elective_Course s. For Course I have this: I thought maybe something on the lines of (partOf only Knowledge_unit) and not(Core_Course) would do the trick, but it doesn't work. Maybe it is because I need and only with the inverse property of partOf , but I haven't defined that property since I didn't need it for the rest. So I could say in

How to encode causal relations in Prolog (as a linear function)

限于喜欢 提交于 2019-12-24 16:12:17
问题 Suppose that two variables X and Y are causally and linearly related, so that an increase in X produces an increase in Y (e.g. travel distance for cars and their fuel consumption). Both X and Y are vectors of N observations (N individual cars in the example). A way to represent such a relation is a simple linear equation Yi = a + bXi, which would describe the relation in the sample of N cases, where i = 1, 2, ..., N. Here a and b are constants, while Y and X are variables. Do you have any

Wikidata Dumps - Long QIDs

时光怂恿深爱的人放手 提交于 2019-12-24 15:13:23
问题 While playing with the dump, I came across many entries like the following: http://www.wikidata.org/entity/Q12258SCD97A47E-A0CA-453F-B01A-DEE8829139BF http://www.wikidata.org/entity/P646v "/m/021821" . what does the Q12258SCD97A47E-A0CA-453F-B01A-DEE8829139BF stand for? it seems to be a QID followed by something else. What does the property: P646v stands for, it doesn't seem to be valid? 回答1: Each Wikidata item has statements, and each statement consists of a statement property and one or

How to infer individual with more than 2 properties in OWL / GraphDB?

时间秒杀一切 提交于 2019-12-24 10:58:54
问题 I got advice from the previous question and modified the source. However, the source still does not work properly. I am using GraphDB(RuleSet: OWL2-RL) and SPARQL. I have an ontology with Person and Animal_Lover classes. People are Animal_Lover if they have more than 2 pet. How can I do this in my ontology? <?xml version="1.0"?> <rdf:RDF xmlns="http://www.example.com/test" xmlns:test="http://www.example.com/test#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www

Synchronizing Jena OntModels with bnodes

瘦欲@ 提交于 2019-12-24 10:45:39
问题 This question relates to rcreswick's question on Serializing Jena OntModel Changes. I have Jena models on two (or more) machines that need to remain synchronized over sockets. The main issue that I need to address is that the models may contain anonymous nodes (bnodes), which can originate in any of the models. Question : Am I on the right track here, or is there a better, more robust approach that I'm failing to consider? I can think of 3 approaches to this problem: Serialize the complete