- From: Graham Klyne <gk@ninebynine.org>
- Date: Tue, 27 Jan 2015 09:44:01 +0000
- To: semantic-web@w3.org
I just scanned this thread, and am mildly surprised at no mention of SPARQL CONSTRUCT constructs. Some SPARQL engines (e.g. Python rdflib) allow pre-defined variable bindings to be used, so a trivial query coupled with a CONSTRUCT clause might do the trick. If you want a command line solution, there's ASQC (https://github.com/gklyne/asqc). This can accept a variable binding in SPARQL JSON format and be combined with a trivial query against some trivial data with a CONSTRUCT clause. It's a little bit messy for your requirement, but it might be a quick fix option for a one-off. (ASQC uses Python rdflib - the relevant code for using predefined bindings is at https://github.com/gklyne/asqc/blob/master/src/asqc/asqc.py#L355) #g -- On 10/05/2014 13:54, Stéphane Campinas 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> . > > Have you seen any such tool ? > > Thanks >
Received on Tuesday, 27 January 2015 09:44:33 UTC