On Oct 19, 2011, at 6:15 PM, Amit Jain wrote:

> Hi Holger,
> It did not work. I am still getting just the query template, though the 
> RDFNode node gives me the RDF.bag but not in the sparql query. Here is the 
> template body.
> @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
> 
> @prefix arg:     <http://spinrdf.org/arg#> .
> 
> @prefix owl:     <http://www.w3.org/2002/07/owl#> .
> 
> @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
> 
> @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> 
> @prefix ex:   <http://example.com/onto#> .
> 
> 
> 
> <ex:testTempl>
> 
>       a       <http://spinrdf.org/spin#Template> ;
> 
>       <http://spinrdf.org/spin#body>
> 
>               [ a       <http://spinrdf.org/sp#Select> ;
> 
>                 <http://spinrdf.org/sp#where>
> 
>                         ([ <http://spinrdf.org/sp#object>
> 
>                                     [ <http://spinrdf.org/sp#varName>
> 
>                                               "object"^^xsd:string
> 
>                                     ] ;
> 
>                             <http://spinrdf.org/sp#predicate>
> 
>                                     [ <http://spinrdf.org/sp#varName>
> 
>                                               "ssn"^^xsd:string
> 
>                                     ] ;
> 
>                             <http://spinrdf.org/sp#subject>
> 
>                                     [ <http://spinrdf.org/sp#varName>
> 
>                                               "sub"^^xsd:string
> 
>                                     ]
> 
>                           ])
> 
>               ] ;
> 
>       <http://spinrdf.org/spin#constraint>
> 
>               [ a       <http://spinrdf.org/spl#Argument> ;
> 
>                 rdfs:comment "SSN value " ;
> 
>                 <http://spinrdf.org/spl#predicate>
> 
>                         arg:ssn ;
> 
>                 <http://spinrdf.org/spl#valueType>
> 
>                         rdf:Property
> 
>               ] .
> 
> 
> 
> and the modified code is 
> 
> 
> Map<String,RDFNode> map1 = new HashMap<String,RDFNode>();
> 
> map1.put("predicate",RDF.Bag);
> 
> 

I guess you meant put("ssn", ... )  - there is no variable "predicate" in your 
query.

Holger

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to