W3C home > Mailing lists > Public > semantic-web@w3.org > September 2012

Re: Transformation to RDF reification

From: <pldms@me.com>
Date: Wed, 26 Sep 2012 19:51:15 +0100
Cc: Liste SW-W3C <semantic-web@w3.org>
Message-id: <6683E7B9-E541-4EB6-8450-415CE63F5D51@me.com>
To: Dominik Tomaszuk <ddooss@wp.pl>
On 26 Sep 2012, at 19:20, Dominik Tomaszuk <ddooss@wp.pl> wrote:

> Hi all,
> 
> Does anyone know a tool for transforming from normal RDF to RDF with reification?
> 
> I mean:
> 
> :s1 :p1 :o1 .
> :s2 :p2 :o2 .
> 
> transform to:
> 
> _:a rdf:type rdf:Statement .
> _:a rdf:subject :s1 .
> _:a rdf:predicate :p1 .
> _:a rdf:object :o1 .
> _:b rdf:type rdf:Statement .
> _:b rdf:subject :s2 .
> _:b rdf:predicate :p2 .
> _:b rdf:object :o2 .
> 
> Supported syntaxes are irrelevant.
> 
> Best,
> Dominik
> 

SPARQL construct?

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
CONSTRUCT { [] rdf:type rdf:Statement ; rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o }
WHERE { ?s ?p ?o }

Damian
Received on Thursday, 27 September 2012 06:16:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:51 GMT