No syntax issue, but with ?o being not bound the ?s ?p ?o triple will
not be constructed.
This might or might not be what you are looking for:
CONSTRUCT
{
?s ?p ?o .
}
WHERE
{ ?s <http://purl.org/dc/terms/title> ?o ;
<http://purl.org/dc/terms/title> "the message"
}
On Wed, Jun 14, 2023 at 12:13 PM Hashim Khan <[email protected]> wrote:
>
> Thanks for the quick response. I would ask if you write the exact query
> please. By, ?o not bound, you mean that we can not execute such a
> construct query? Or is there a syntax issue?
>
> On Wed, Jun 14, 2023 at 12:04 PM Martynas Jusevičius <[email protected]>
> wrote:
>
> > ?o is not bound in your WHERE pattern.
> >
> > On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan <[email protected]>
> > wrote:
> > >
> > > Hi,
> > >
> > > ./rsparql --service http://localhost:8890/sparql --query query.sparql
> > > --results=ntriples I want to save the triples in NT format as returned by
> > > the construct query given here.
> > > CONSTRUCT {?s ?p ?o} WHERE {
> > > ?s <http://purl.org/dc/terms/title> 'the message' .
> > > }
> > >
> > > I have run this query with SELECT and it has many triples, but when I
> > want
> > > to construct them, then I can not see the effect. It takes about two
> > > seconds but neither output.nt file generates, nor I see any triples. If
> > > anyone please tell me the exact query to accomplish this job.
> > >
> > > best regards
> > > --
> > > *Hashim Khan*
> >
>
>
> --
> *Hashim Khan*