semantic-web

How to get the object property values for the specified individual?

眉间皱痕 提交于 2020-01-17 05:38:50
问题 I have an ontology, created using Protegé 4.3.0, and I would use the OWL-API in order to get the object property values (ie. a set of OWLNamedIndividual objects) for the specified individual and object property expression. Set<OWLNamedIndividual> values = reasoner.getObjectPropertyValues(individual, hasPart).getFlattened(); Unfortunately the above instruction return no items, since in my ontology the association between individuals is via some sub object properties of hasPart object property.

How to get the object property values for the specified individual?

∥☆過路亽.° 提交于 2020-01-17 05:38:10
问题 I have an ontology, created using Protegé 4.3.0, and I would use the OWL-API in order to get the object property values (ie. a set of OWLNamedIndividual objects) for the specified individual and object property expression. Set<OWLNamedIndividual> values = reasoner.getObjectPropertyValues(individual, hasPart).getFlattened(); Unfortunately the above instruction return no items, since in my ontology the association between individuals is via some sub object properties of hasPart object property.

opennlp sample training data for disease

笑着哭i 提交于 2020-01-17 05:03:32
问题 I'm using OpenNLP for data classification. I could not find TokenNameFinderModel for disease here. I know I can create my own model but I was wondering is there any large sample training data available for disease? 回答1: You can easily create your own training data-set using the modelbuilder addon and follow some rules as mentioned here to train create a good NER model. you can find some help using modelbuilder addon here. It is basically, you put all the information in a text file and the NER

Sparql query from Dbpedia and another graph returns less results than expected

吃可爱长大的小学妹 提交于 2020-01-16 18:07:09
问题 I'm a beginner in SPARQL and I'm working on this endpoint http://spcdata.digitpa.gov.it:8899/sparql. I'd like to join data from the DBpedia graph. I'm using the property owl:sameAs for referencing to DBpedia resources. I'd like to fetch the name and population values of all cities falling in the class pa:Comune for which a dbp:populationTotal value is defined. Here is my query: PREFIX pa: <http://spcdata.digitpa.gov.it/> PREFIX rdf: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbp: <http:/

Sparql query from Dbpedia and another graph returns less results than expected

醉酒当歌 提交于 2020-01-16 18:06:09
问题 I'm a beginner in SPARQL and I'm working on this endpoint http://spcdata.digitpa.gov.it:8899/sparql. I'd like to join data from the DBpedia graph. I'm using the property owl:sameAs for referencing to DBpedia resources. I'd like to fetch the name and population values of all cities falling in the class pa:Comune for which a dbp:populationTotal value is defined. Here is my query: PREFIX pa: <http://spcdata.digitpa.gov.it/> PREFIX rdf: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbp: <http:/

Inference on Complex Classes in Protege

末鹿安然 提交于 2020-01-13 12:09:27
问题 I want to make inferences such as the property represented by the grey-dotted line in this diagram: I have asserted a general axiom: (hasTaste some Bitter) SubClassOf: goesWellWith some (hasTaste some Sweet) where 'bitter' is of type Bitter and 'sweet' is of type Sweet. I thought owl:someValuesFrom (or Manchester's "some") meant that at least one such relation must exist. Yet this does not happen after making the bold diagram assertions and the general axiom. How can I make this work? EDIT

Inference on Complex Classes in Protege

折月煮酒 提交于 2020-01-13 12:09:16
问题 I want to make inferences such as the property represented by the grey-dotted line in this diagram: I have asserted a general axiom: (hasTaste some Bitter) SubClassOf: goesWellWith some (hasTaste some Sweet) where 'bitter' is of type Bitter and 'sweet' is of type Sweet. I thought owl:someValuesFrom (or Manchester's "some") meant that at least one such relation must exist. Yet this does not happen after making the bold diagram assertions and the general axiom. How can I make this work? EDIT

Best way to create a SPARQL endpoint for a RDBMS (MySQL database)

会有一股神秘感。 提交于 2020-01-12 08:40:35
问题 I am doing (want to do) some experiments with Linked Open Datasets particularly those put out by governments. I have a RDBMS (more specifically MySQL). I designed it with semantic web ideas in mind i.e. I have a information stored as objects, predicates and classes which define objects. In turn all objects are related to each other though statements of the form subject --> predicate --> object (where the subjects are from the objects table). I want to be able to query other RDF triple stores

Jena parsing issue for freebase RDF dump (Jan 2014)

末鹿安然 提交于 2020-01-11 06:07:49
问题 I am trying to parse freebase dump file freebase-rdf-2014-01-12-00-00.gz (25 GB) using Jena. There has been many issues reported by Jena regarding bad data. Example - 150.0 not valid,true and false values not valid These issues I have resolved by adding double quotes around decimal and true/false in dump file. However issues are still being reported by Jena.(current - org.apache.jena.riot.RiotException: [line: 161083, col: 110] Illegal object: [MINUS]) Is there any way to pre process this

Jena parsing issue for freebase RDF dump (Jan 2014)

我与影子孤独终老i 提交于 2020-01-11 06:07:07
问题 I am trying to parse freebase dump file freebase-rdf-2014-01-12-00-00.gz (25 GB) using Jena. There has been many issues reported by Jena regarding bad data. Example - 150.0 not valid,true and false values not valid These issues I have resolved by adding double quotes around decimal and true/false in dump file. However issues are still being reported by Jena.(current - org.apache.jena.riot.RiotException: [line: 161083, col: 110] Illegal object: [MINUS]) Is there any way to pre process this