rdf

SPARQL functions in CONSTRUCT/WHERE

。_饼干妹妹 提交于 2019-12-11 22:42:27
问题 I mostly use SPARQL SELECT while working on a query for debugging purposes but in the end I want to use the final result it in a CONSTRUCT way; as I want to work with a graph and not key/value query results. What I don't get yet (and can't seem to find with search engines/docs) is if I can use functions as well that way. As an example, I use a property path to concatenate titles I get into a "superstring", which I later use for building a Lucene index to increase plain text search quality:

Difference between rdf:seeAlso and rdfs:seeAlso

空扰寡人 提交于 2019-12-11 21:30:05
问题 What is the difference between rdf:seeAlso and rdfs:seeAlso ? When I can use rdf:seeAlso and when I can use rdfs:seeAlso ? Can you do any examples? 回答1: First, note that rdf and rdfs are prefixes commonly used to reference the RDF syntax and RDF schema vocabularies respectively. The rdf is typically used for http://www.w3.org/1999/02/22-rdf-syntax-ns#, so that rdf:seeAlso would expand to http://www.w3.org/1999/02/22-rdf-syntax-ns#seeAlso. However, if you follow the vocabulary reference, you

Select a property value from dbpedia resource with SPARQL

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 19:49:44
问题 i'm trying to use SPARQL query on DBpedia. I can retrieve all information about a resource with this query: PREFIX db: <http://dbpedia.org/resource/ PREFIX prop: <http://dbpedia.org/property/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?property ?value WHERE { db:Luciano_Ligabue ?property ?value }; Now I want to retrieve the value of just one property such as dbpedia-owl: birthDate. I'm trying in different way, but i can't retrieve the information needed. Can someone help me, please?

Protege 4 - Saving RDF reformats nested blank nodes

为君一笑 提交于 2019-12-11 19:22:16
问题 I just switched from TopBraid to try out Protege. I have an ontology with some RDF that resembles this: instances:some_thing1 a semapi:SomeClass ; semapi:hasChainTo ( [ a semapi:SomeOtherClass ; semapi:hasChainTo ( [ ... ] [ ... ] ) ] ) . The idea is that this nested blank nodes syntax works great because the chains get very deep and this syntax is fluid and highly readable and maintainable as the chains may change from time to time and new chains can be added. Not only that, but I have

Is there a way to convert JSON-LD to N-Quads format?

白昼怎懂夜的黑 提交于 2019-12-11 18:08:36
问题 We have a requirement where we will be storing data in JSON-LD format for maintaining catalog and data from catalog will be pulled in batches to graph DB which supports RDF data format. We have been looking at Cayley and DBgraph for this purpose but these DB support N-Quads as their data format. If there is a graph db which has JSON-LD data format or if there is way to convert JSON-LD format to N-Quads/Turtle format? 回答1: Converting JSON-LD to N-Quads (and back) are core algorithms described

getLiteral returns null when reading RDF file using jena

别说谁变了你拦得住时间么 提交于 2019-12-11 16:45:33
问题 I have been reading about OWL ontology and RDF files all these days. I still can't understand this. Let's say I created a simple ontology using Protege. It has single class called Review with two data properties which are comment and rating. Now I want to create a separate RDF file written in xml which has some comments. The file I created look like <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:c

How to remove non-English entries from wikidata

旧街凉风 提交于 2019-12-11 16:02:03
问题 I am currently using the following SPARQL query to count the number of incoming links of a given node. SELECT (COUNT (*) AS ?count) WHERE {?s ?p wd:Q22673982 .} Code in Wikidata query editor: https://w.wiki/5DW However, the results include the count of non-English links as well. Is there a way to remove non-english links in wikidata results using SPARQL? I am happy to provide more details if needed. 来源: https://stackoverflow.com/questions/56724431/how-to-remove-non-english-entries-from

RDF Schema generation from RDF data instance

最后都变了- 提交于 2019-12-11 15:43:56
问题 Is anyone aware of some work being done on generating RDF schema for a given RDF data instance ? It would be some thing like coming up with information like classes, their attributes, their associations(hierarchical or peer) with other classes and if possible data types of attributes. It all resembles RDF Schema. My other question is how different is this approach (RDF schema generation from a given RDF data instance) from finding patterns in RDF data ? Is it the same thing put up in a

Problem in selecting constants of an enum class

吃可爱长大的小学妹 提交于 2019-12-11 15:02:02
问题 I've encourted a problem recently about cycling between constants of an enum class in .net (that is created from my OWL class, by Rowlex OwlGrinder). Problem was solved by means of using .net reflection (thanks to great help from dear Mr. Jon Skeet): stackoverflow:problem-cycling-enum-class-values By solving this, I started using it. After matching a dropDownList selected value to one of the enum class instances, I had to declare the selected object(=Language) to my RDF subject(

tdbloader2 fails with classpath error

邮差的信 提交于 2019-12-11 14:56:34
问题 When I run the following command: bin/tdbloader2 --loc=/store/data/here /seed/data/serverfault-dump.nt And the response I get is: 10:52:31 -- TDB Bulk Loader Start 10:52:31 Data phase Error: Could not find or load main class com.hp.hpl.jena.tdb.store.bulkloader2.CmdNodeTableBuilder Which is most likely caused by a problem with my environment variables, somewhere, of something. The problem is, I don't often work with Java and so I don't know enough to know how to figure out what that class