Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
Sorry, I meant this:



CONSTRUCT
  {
?s ?p ?o .
  }
WHERE
  { ?s  ?p?o ;
  "the message"
  }

On Wed, Jun 14, 2023 at 12:23 PM Martynas Jusevičius
 wrote:
>
> 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    ?o ;
>   "the message"
>   }
>
> On Wed, Jun 14, 2023 at 12:13 PM Hashim Khan  
> 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 
> > 
> > wrote:
> >
> > > ?o is not bound in your WHERE pattern.
> > >
> > > On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan 
> > > 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  '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*


Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
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    ?o ;
  "the message"
  }

On Wed, Jun 14, 2023 at 12:13 PM Hashim Khan  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 
> wrote:
>
> > ?o is not bound in your WHERE pattern.
> >
> > On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan 
> > 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  '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*


Re: CONSTRUCT query with rsparql

2023-06-14 Thread Hashim Khan
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 
wrote:

> ?o is not bound in your WHERE pattern.
>
> On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan 
> 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  '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*


Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
?o is not bound in your WHERE pattern.

On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan  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  '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*


CONSTRUCT query with rsparql

2023-06-14 Thread Hashim Khan
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  '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*