rdf

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

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

Multiple statements query SPARQL 1.1 property-paths Virtuoso 7.2.X

假装没事ソ 提交于 2020-01-06 20:25:17
问题 A sample RDF dataset has entries owl#NamedIndividual grouped by owl#Class and a custom relation named IsMemberOf . When I try to obtain a list of results segregated by their type, it works well but the moment I add a way to obtain their corresponding IsMemberOf I don't get expected results. Here is three SPARQL 1.1 queries I gave to Virtuoso (sample dataset below): Query 1 sparql select * from <test> where { #If I uncomment the next line I don't get the proper results # ?s <IsMemberOf>

coalesce not working in this example

≡放荡痞女 提交于 2020-01-06 18:38:36
问题 This is my minimum data: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rs: <http://www.SemanticRecommender.com/rs#> PREFIX mo: <http://www.musicontology.com/mo#> PREFIX : <http://www.musicsemanticontology.com/mso#> mo:5th_symphony_for_beethoven a mo:GermanSymphony . :symphonyFestival2016 a rs:TemporalContext ; rs:appliedOnItems mo:GermanSymphony ; rs:canBeRecommendedFrom "2016-07-01T00:00:00-00:00"^^xsd:dateTime ; rs

jena api get range of ObjectProperty

我的梦境 提交于 2020-01-06 15:24:06
问题 I've and OWL file and I can explore it and navigate through classes and properties but I can't retrieve correct range of ObjectProperty. This is part of my OWL file: <owl:ObjectProperty rdf:about="&aat;aat2209_located_in"> <rdfs:label xml:lang="en">located in</rdfs:label> <rdfs:label xml:lang="it">si trova in</rdfs:label> <rdfs:comment xml:lang="en">The property defines a relationship between places or places and things</rdfs:comment> <rdfs:comment xml:lang="it">La proprietà definisce la

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

bug or wrong way for VALUES in SPARQL, OpenLink Virtuoso?

和自甴很熟 提交于 2020-01-06 12:41:47
问题 I have Virtuoso 7.10 and command VALUES works for 1*x or x*1 asign to tables like: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") } } and for: SELECT * WHERE { VALUES ?z { "x" "y" "z" } } But the problem is when i try to assign like this: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") ("xy" "yx" "zx") } } then in result, i have only first column filled, but other two are empty (same as with two column). Is it a bug or am I doing something wrong? Is there a workaround? 来源: https:/

bug or wrong way for VALUES in SPARQL, OpenLink Virtuoso?

廉价感情. 提交于 2020-01-06 12:40:20
问题 I have Virtuoso 7.10 and command VALUES works for 1*x or x*1 asign to tables like: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") } } and for: SELECT * WHERE { VALUES ?z { "x" "y" "z" } } But the problem is when i try to assign like this: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") ("xy" "yx" "zx") } } then in result, i have only first column filled, but other two are empty (same as with two column). Is it a bug or am I doing something wrong? Is there a workaround? 来源: https:/