semantic-web

How to create an ontology from raw data (CSV)?

笑着哭i 提交于 2020-01-10 02:06:22
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.

How to create an ontology from raw data (CSV)?

旧街凉风 提交于 2020-01-10 02:05:11
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.

Retrieving dbpedia-owl:type value of resource with dbpedia-owl:wikiPageRedirect value?

匆匆过客 提交于 2020-01-09 05:37:44
问题 Visitng http://dbpedia.org/resource/Cupertino shows the DBpedia RDF information about Cupertino. As you can see, it has, among others, the property and value: dbpedia-owl:type dbpedia:City However, this query on the DBpedia endpoint returns no results: SELECT ?type WHERE { dbpedia:Cupertino dbpedia-owl:type ?type } SPARQL results Why can't I retrieve the value of the dbpedia-owl:type property? 回答1: You've got an interactive webservice in front of you, and one of the most useful things that

results = results['results']['bindings'] Flask error

穿精又带淫゛_ 提交于 2020-01-07 08:07:19
问题 I try to obtain results bindings by this Sparql query. Through this Sparql entry point: http://digitale.bncf.firenze.sbn.it/openrdf-workbench/repositories/NS_03_2014/query I have the error: "TypeError: query() takes at least 2 arguments (1 given) Thank you!!! @app.route('/caricaArgomento/<type>', methods=['GET']) def getArgomento(type): #sparql = SPARQLUpdateStore("http://digitale.bncf.firenze.sbn.it/openrdf- workbench/repositories/NS_03_2014/query") sparql=SPARQLUpdateStore("http://digitale

Inference in protége

大憨熊 提交于 2020-01-06 17:58:36
问题 I'm building an ontology to find peoples' skills. I want to infer that when a person A passed a course B and course B provides skill C, then person A has skill C. Is there a way to do this in Protégé? 回答1: Sure, you're saying that when you have: A &rightarrow; passed B &rightarrow; providesSkill C you want to infer that A &rightarrow; hasSkill C You can do that with the subproperty chain axiom: passed &bullet; providesSkill &sqsubseteq; hasSkill For a more detailed example of how to add these

How do I make my raw scientific data useful to the semantic web? [closed]

让人想犯罪 __ 提交于 2020-01-06 13:28:32
问题 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 5 years ago . I have a large set of raw structured datasets in CSV and HDF5 format. I would usually upload these to a web server as they are, but what steps are required to incorporate this data to the semantic web? 回答1: Tim Berners-Lee defined the 5 stars of Linked Open Data. Assuming that

How do I interact with Apache Jena locally? - MacOS

时间秒杀一切 提交于 2020-01-06 07:18:09
问题 I may just be going at this wrong, but I am not sure how to interact with Apache Jena on my computer. I think my main question revolves around where I store files and how I run them. I use Atom editor and work in Python and Javascript normally. My goal here is to get a handle of how Jena and Fuseki work then potentially using Fuseki for the backend of a web app. The tutorial, An Introduction to RDF and the Jena RDF API, links to Java files. Where do I store this file on my desktop and how can

Trouble Inferring Properties for Classes/Individuals in Protege 5/OWL

佐手、 提交于 2020-01-06 03:45:10
问题 I want to be able to infer which ingredients go well together given...their properties and which properties complement each other. I have an ontology like, owl:Thing Ingredient Kale Pear Taste Bitter Sweet owl:topObjectProperty hasTaste tasteComplements goesWellWith Individuals: (*would rather work with just classes) kale a Kale pear a Pear bitter a Bitter sweet a Sweet I've asserted, Kale subClassOf hasTaste some Bitter Pear subClassOf hasTaste some Sweet Bitter subClassOf tasteComplements

Make filtering people by birthYear and deathYear criteria more performative in SPARQL query

£可爱£侵袭症+ 提交于 2020-01-05 06:17:56
问题 I want to find instances of scientists who both were born and died in prime-numbered years. Building on a previous discussion at this URL, I devised the following query, which is unwieldy and times out: SELECT ?birthYear ?deathYear ?scientist ?scientistLabel WHERE { { select ?value1 { ?number wdt:P31 wd:Q49008. ?number wdt:P1181 ?value1 filter(?value1 < year(now())) } } { select ?value2 { ?number wdt:P31 wd:Q49008. ?number wdt:P1181 ?value2 filter(?value2 < ?value1) } } ?scientist wdt:P106 wd

How to query the distance between two things with SPARQL

南楼画角 提交于 2020-01-04 14:10:53
问题 I created a little metro map with RDF/XML and wonder, how to query the distance between two stops. I'm very new to SPARQL and don't know how to start. "Distance" means, that I want to know, how many stations are between the two ones. Later, I want to calculate the duration, but that's another point. Thats my first approach: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ex: <http://example.com> SELECT (count(?mid) as