redland

UNION and intersection using SPARQL queries

末鹿安然 提交于 2020-01-15 07:22:06
问题 I am converting user-defined-queries into SPARQL. For example, when user says, "abc", it means give me all nodes of a given type which have some attribute named "abc". As an extension of this, if user says, "abc or (pqr and lmn)", I need to find all nodes of a given type for which some attribute is "abc or (pqr and lmn)". Following is the query I have come up with: SELECT DISTINCT ?node, ?type WHERE { { ?node a ?type . FILTER ( ?type != <sometype>) } { { ?node ?reln0 ?obj0 . FILTER ( regex

Why cygwin cannot find python libraries while installing python redland-binding library?

老子叫甜甜 提交于 2019-12-25 07:59:51
问题 I tried to install the latest versions of redland library under cygwin : raptor2-2.0.0 rasqal-0.9.24 redland-1.0.13 redland-bindings-1.0.13.1 I am interested for the python bindings. I've succefully installed raptor, rasqal and redland.I tried to install the bindings and i got a bunch of undefined references to python objects ": home@home-PC ~/redland-bindings-1.0.13.1/python $ make install Making install in test make[1]: Entering directory `/home/home/redland-bindings-1.0.13.1/python/test'

Compiling a library (redland) in Cygwin using gcc and using the output in Visual Studio (c++)

一曲冷凌霜 提交于 2019-12-22 06:46:47
问题 I'm currently trying to compile redland (librdf http://librdf.org/) under Windows. According to their website it should build under Windows. As i don't want to spend my time fixing the .sln I thought about compiling librdf (and the necessary projects) in cygwin and then use the library in visual studio. So my question is: Is it possible to use librarys compile in cygwin in windows application? And if so how? As I am a windows developer I don't know if there is any difference from the created

The State of RDF in Ruby [closed]

半腔热情 提交于 2019-12-17 22:16:44
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm wondering about the current support there is in Ruby for semantic web technologies. Is there good RDF options? It seems that the

Lifetime of RDF nodes in Redland RDF after parsing a model?

二次信任 提交于 2019-12-11 01:37:25
问题 I am parsing an RDF_model using librdf_parser_parse_string_into_model . I then retain the librdf_model but free the librdf_parser . It looks to me as if the nodes in the model then have disappeared as well. So what lifetime does Redland RDF impose on librdf_node s in this case? Is the the lifetime of the model that contains them (as would seem most convenient) or the lifetime of the parser that created them (as now may be the case)? The documentation seems to be silent on this. 回答1: Redland

Compiling a library (redland) in Cygwin using gcc and using the output in Visual Studio (c++)

空扰寡人 提交于 2019-12-05 11:19:29
I'm currently trying to compile redland (librdf http://librdf.org/ ) under Windows. According to their website it should build under Windows. As i don't want to spend my time fixing the .sln I thought about compiling librdf (and the necessary projects) in cygwin and then use the library in visual studio. So my question is: Is it possible to use librarys compile in cygwin in windows application? And if so how? As I am a windows developer I don't know if there is any difference from the created .a files to .dlls. I already read up to the topic and it will be necessary to include the cygwin1.dll

SPARQL query on the remote remote endpoint RDFLib / Redland

孤街浪徒 提交于 2019-11-30 19:22:10
I'm trying to query remote endpoints and get get owl:sameAs mappings, I've tried both RDFLib and Redland but neither worked for me, probably I'm not dealing with namespaces correctly. Here is my attempt in RDFLib: import rdflib rdflib.plugin.register('sparql', rdflib.query.Processor, 'rdfextras.sparql.processor', 'Processor') rdflib.plugin.register('sparql', rdflib.query.Result, 'rdfextras.sparql.query', 'SPARQLQueryResult') g = rdflib.Graph() query = """ SELECT * FROM <http://api.talis.com/stores/bbc-backstage/services/sparql> WHERE { ?s a http://purl.org/ontology/mo/MusicArtist; http://www

SPARQL query on the remote remote endpoint RDFLib / Redland

泪湿孤枕 提交于 2019-11-30 03:51:58
问题 I'm trying to query remote endpoints and get get owl:sameAs mappings, I've tried both RDFLib and Redland but neither worked for me, probably I'm not dealing with namespaces correctly. Here is my attempt in RDFLib: import rdflib rdflib.plugin.register('sparql', rdflib.query.Processor, 'rdfextras.sparql.processor', 'Processor') rdflib.plugin.register('sparql', rdflib.query.Result, 'rdfextras.sparql.query', 'SPARQLQueryResult') g = rdflib.Graph() query = """ SELECT * FROM <http://api.talis.com

The State of RDF in Ruby [closed]

主宰稳场 提交于 2019-11-28 17:58:56
I'm wondering about the current support there is in Ruby for semantic web technologies. Is there good RDF options? It seems that the last surveys done were circa 2007 ( http://paul-classic.stadig.name/2007/10/26/the-state-of-rdf-support-in-ruby-2007/ ). Is Redland's RDF wrappers the best way to go for RDF support - all the other projects mentioned in that aging article seem to be unsupported or dropped. Is Ruby perhaps a bad choice if one which to pursue projects pertaining to the semantic web? Hey, Iaalto, I'm the author of the survey article that you mentioned. I've been thinking about doing