Questions tagged [redland]

Redland is a set of free C libraries providing support for Resource Description Framework (RDF) data.

Redland is a set of free C libraries providing support for Resource Description Framework (RDF) data.

Redland consists of the following parts:

  • Raptor RDF Syntax Library for parsing and serializing RDF syntaxes

  • Rasqal RDF Query Library for executing RDF queries

  • Redland RDF Library (librdf) providing the RDF API and triple stores, building on top of Raptor and Rasqal

  • Redland Language Bindings for language APIs to Redland in Perl, PHP, Python and Ruby

Use this tag for questions about using any of the above libraries.

Related tags:

Redland website

42 questions
16
votes
7 answers

The State of RDF in Ruby

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 (…
Daniel
  • 15,492
  • 18
  • 62
  • 83
9
votes
4 answers

SPARQL query on the remote remote endpoint RDFLib / Redland

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 …
user52028778
  • 22,840
  • 3
  • 30
  • 38
5
votes
1 answer

Validating RDF files using Raptor or Sax

Given a RDF file, I want to write a python script to validate the file and comment if in wrong format. HOw do I do this with RAptor? or Sax or is there any other library? No luck with w3.
madCode
  • 3,397
  • 4
  • 24
  • 30
5
votes
1 answer

Storage transactions in Redland's Python bindings?

I've currently skimming through the Python-bindings for Redland and haven't found a clean way to do transactions on the storage engine via it. I found some model-transactions within the low-level Redland module: import RDF, Redland storage =…
Horst Gutmann
  • 9,226
  • 1
  • 24
  • 30
5
votes
2 answers

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

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…
Steve
  • 302
  • 4
  • 9
4
votes
2 answers

Rewrite SPARQL DESCRIBE query as CONSTRUCT

For some reason I can't issue DESCRIBE queries using Redland ( librdf.org ), is it possible to rewrite DESCRIBE as a CONSTRUCT QUERY for a given URI? DESCRIBE I was thinking about writting it into something like this but I don't think…
Jeffrey04
  • 5,428
  • 10
  • 40
  • 62
4
votes
1 answer

Loading very large RDF triples into iGraph -> Fast vertices lookup?

I need to load a subset of the DBPedia graph into iGraph in order to compute some graph statistics (such as node centrality, ...). I load DBPedia triples using the Redlands libRDF python library. Each node is associated with an URI (unique…
Kevin.
  • 2,512
  • 2
  • 20
  • 21
4
votes
1 answer

Parsing large NTriples File Python

I am trying to parse a rather large NTriples file using the code from Parse large RDF in Python I installed raptor and the redland-bindings for python. import RDF parser=RDF.Parser(name="ntriples") #as name for parser you can use ntriples, turtle,…
ejang
  • 3,722
  • 7
  • 41
  • 65
3
votes
1 answer

Parsing N-Triples Via Streaming

I was fairly confused about this for some time but I finally learned how to parse a large N-Triples RDF store (.nt) using Raptor and the Redland Python Extensions. A common example is to do the following: import…
ejang
  • 3,722
  • 7
  • 41
  • 65
3
votes
1 answer

UNION and intersection using SPARQL queries

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…
Ksh Padalkar
  • 241
  • 2
  • 7
2
votes
1 answer

Why does this raptor code parse NTriples but not RDFXML?

I've been trying for a while to parse some RDF/XML files with the raptor2 C library. This example code will read an NTriples file and print it, but not RDF/XML. From the raptor tutorial: #include #include /* rdfcat.c: parse…
jefdaj
  • 1,817
  • 1
  • 19
  • 30
2
votes
1 answer

Example of Python + Redland for RDF Storage and Retrieval

Would someone please point to an example of using Python to store RDF data using Redland / RDF, and later to retrieve the data. I see there is a lot of Redland documentation out there, and I'm sure it's excellent, but I'm quite new to RDF and don't…
chernevik
  • 3,750
  • 9
  • 38
  • 53
2
votes
1 answer

Using Raptor RDF Parser Toolkit to generate a FOAF rdfxml file

I want to write a C/C++ program using the Raptor RDF Parser Toolkit to generate the following output (checked with RDF Validator):
Vertexwahn
  • 6,759
  • 6
  • 50
  • 78
2
votes
1 answer

rdfland rdfproc: adding a RDF literal

In rdfproc/redland how can I add a typed literal ? The man page says: add-typed SUBJECT PREDICATE OBJECT OBJECT-LANG OBJECT-URI [CONTEXT] Add the triple with the datatyped literal object to the graph, in the optional Redland context if …
Pierre
  • 31,741
  • 29
  • 101
  • 180
2
votes
1 answer

What's the character encoding for string representations of URIs in Redland RDF?

Is it safe to assume that strings returned by librdf_uri_as_string () use UTF-8 encoding. Or is it perhaps ISO-Latin (with additional URL encoding)? I am dealing with URIs in an librdf_model that was read with…
Drux
  • 10,334
  • 10
  • 58
  • 107
1
2 3