- From: Tim Berners-Lee <timbl@w3.org>
- Date: Sat, 24 Jan 2015 21:52:04 +0000
- To: Stéphane Campinas <stephane.campinas@deri.org>
- Cc: SW-forum Web <semantic-web@w3.org>
Received on Saturday, 24 January 2015 21:52:14 UTC
On 2014-05 -10, at 13:54, Stéphane Campinas <stephane.campinas@deri.org> wrote: > Hi, > > Do you know of any tool that creates RDF statements based on some template ? > > For example, let's imagine I have the following template: > <http://acme.org/${id}> <http://acme.org/predicate1> "${something}" . > <http://acme.org/${id}> <http://acme.org/predicate2> <http://acme.org/${person}> . > > where ${...} are variables. Then, by providing values for these variables, the following statements would be created: > ${id} = e1 ${something} = blabla ${person} = john > > <http://acme.org/e1> <http://acme.org/predicate1> "blabla" . > <http://acme.org/e1> <http://acme.org/predicate2> <http://acme.org/john> . You could use the cwm with n3 rules using log:uri to link between URI string and the thing. { [] :id ?id; :something ?s; :person ?person . ( "http://acme.org/" ?id ) string:concatenation [ is log:uri of ?e ]. ( "http://acme.org/" ?person ) string:concatenation [ is log:uri of ?p] . } => { ?e <http://acme.org/predicate1> ?s . ?e <http://acme.org/predicate2> ?p . } timbl > Have you seen any such tool ? > > Thanks > -- > Stephane Campinas
Received on Saturday, 24 January 2015 21:52:14 UTC