You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Mikael Pesonen <mi...@lingsoft.fi> on 2021/05/26 11:46:05 UTC
Re: Construct Quads on Apache Jena Fuseki
Hi,
sorry for replying to old thread. I would like to dump some graphs from
corrupted db. Is there a way to dump them with one quad query instead of
dumping each graph separately as triples?
On 03/12/2020 16.23, Ahmed Helal wrote:
> Hi,
>
> My query is:
> CONSTRUCT {
> graph ?g
> {?s ?p ?o}
> }
> WHERE{
> GRAPH ?g { ?s ?p ?o }. values ?g {<http://example#v1>}
> }
>
> The interface shows an error/message for the second line saying (graph ?g): This line is invalid. Expected: VAR1, VAR2...
>
> This is the returned results:
> {
> "readyState": 4,
> "responseText": "",
> "status": 200,
> "statusText": "OK"
> }
>
>
> Thank you,
> Ahmed.
>
>
>
> ________________________________
> From: Rob Vesse <rv...@dotnetrdf.org>
> Sent: Thursday, December 3, 2020 4:00 AM
> To: users@jena.apache.org <us...@jena.apache.org>
> Subject: Re: Construct Quads on Apache Jena Fuseki
>
> The list does not permit attachments so we cannot see screenshots. Please provide the example query that is failing and the error/log message(s) you see in relation to the failure
>
>
>
> Rob
>
>
>
> From: Ahmed Helal <ah...@mail.concordia.ca>
> Reply to: <us...@jena.apache.org>
> Date: Thursday, 3 December 2020 at 06:26
> To: "users@jena.apache.org" <us...@jena.apache.org>
> Subject: Construct Quads on Apache Jena Fuseki
>
>
>
> Hello everyone,
>
>
>
> I am trying to construct Quads following the documentation on this page:
>
> https://jena.apache.org/documentation/query/construct-quad.html
>
>
>
> However, when I write my script on Apache Jena Fuseki, it complains. I have attached a screenshot below
>
>
>
>
>
> Thank you,
>
> Ahmed Helal.
>
>
>
> Note: The script in the screenshot is just for the sake of the example
>
>
Re: Construct Quads on Apache Jena Fuseki
Posted by Andy Seaborne <an...@apache.org>.
It flags a warning; you can still send the query. Yasgui does not know
about extended syntax.
On Wed, 26 May 2021, 15:29 Mikael Pesonen, <mi...@lingsoft.fi>
wrote:
>
> Thanks, that works. Gave up too easily since Fuseki web GUI shows error
> "This line is invalid" for line "{ GRAPH ?g { ?s ?p ?o } } ".
>
> On 26/05/2021 17.24, Andy Seaborne wrote:
> > ARQ supports GRAPH in CONSTRUCT.
> >
> > Need to use for a suitable MIME type for quads.
> >
> > PREFIX : <http://example.com/>
> >
> > CONSTRUCT
> > { GRAPH ?g { ?s ?p ?o } }
> > WHERE
> > {
> > VALUES ?g { :g1 :g2 }
> > GRAPH ?g { ?s ?p ?o }
> > }
> >
> > Andy
> >
> > On 26/05/2021 12:46, Mikael Pesonen wrote:
> >>
> >> Hi,
> >>
> >> sorry for replying to old thread. I would like to dump some graphs
> >> from corrupted db. Is there a way to dump them with one quad query
> >> instead of dumping each graph separately as triples?
> >>
> >> On 03/12/2020 16.23, Ahmed Helal wrote:
> >>> Hi,
> >>>
> >>> My query is:
> >>> CONSTRUCT {
> >>> graph ?g
> >>> {?s ?p ?o}
> >>> }
> >>> WHERE{
> >>> GRAPH ?g { ?s ?p ?o }. values ?g {<http://example#v1>}
> >>> }
> >>>
> >>> The interface shows an error/message for the second line saying
> >>> (graph ?g): This line is invalid. Expected: VAR1, VAR2...
> >>>
> >>> This is the returned results:
> >>> {
> >>> "readyState": 4,
> >>> "responseText": "",
> >>> "status": 200,
> >>> "statusText": "OK"
> >>> }
> >>>
> >>>
> >>> Thank you,
> >>> Ahmed.
> >>>
> >>>
> >>>
> >>> ________________________________
> >>> From: Rob Vesse <rv...@dotnetrdf.org>
> >>> Sent: Thursday, December 3, 2020 4:00 AM
> >>> To: users@jena.apache.org <us...@jena.apache.org>
> >>> Subject: Re: Construct Quads on Apache Jena Fuseki
> >>>
> >>> The list does not permit attachments so we cannot see screenshots.
> >>> Please provide the example query that is failing and the error/log
> >>> message(s) you see in relation to the failure
> >>>
> >>>
> >>>
> >>> Rob
> >>>
> >>>
> >>>
> >>> From: Ahmed Helal <ah...@mail.concordia.ca>
> >>> Reply to: <us...@jena.apache.org>
> >>> Date: Thursday, 3 December 2020 at 06:26
> >>> To: "users@jena.apache.org" <us...@jena.apache.org>
> >>> Subject: Construct Quads on Apache Jena Fuseki
> >>>
> >>>
> >>>
> >>> Hello everyone,
> >>>
> >>>
> >>>
> >>> I am trying to construct Quads following the documentation on this
> >>> page:
> >>>
> >>> https://jena.apache.org/documentation/query/construct-quad.html
> >>>
> >>>
> >>>
> >>> However, when I write my script on Apache Jena Fuseki, it complains.
> >>> I have attached a screenshot below
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Thank you,
> >>>
> >>> Ahmed Helal.
> >>>
> >>>
> >>>
> >>> Note: The script in the screenshot is just for the sake of the example
> >>>
> >>>
> >>
>
>
Re: Construct Quads on Apache Jena Fuseki
Posted by Mikael Pesonen <mi...@lingsoft.fi>.
Thanks, that works. Gave up too easily since Fuseki web GUI shows error
"This line is invalid" for line "{ GRAPH ?g { ?s ?p ?o } } ".
On 26/05/2021 17.24, Andy Seaborne wrote:
> ARQ supports GRAPH in CONSTRUCT.
>
> Need to use for a suitable MIME type for quads.
>
> PREFIX : <http://example.com/>
>
> CONSTRUCT
> { GRAPH ?g { ?s ?p ?o } }
> WHERE
> {
> VALUES ?g { :g1 :g2 }
> GRAPH ?g { ?s ?p ?o }
> }
>
> Andy
>
> On 26/05/2021 12:46, Mikael Pesonen wrote:
>>
>> Hi,
>>
>> sorry for replying to old thread. I would like to dump some graphs
>> from corrupted db. Is there a way to dump them with one quad query
>> instead of dumping each graph separately as triples?
>>
>> On 03/12/2020 16.23, Ahmed Helal wrote:
>>> Hi,
>>>
>>> My query is:
>>> CONSTRUCT {
>>> graph ?g
>>> {?s ?p ?o}
>>> }
>>> WHERE{
>>> GRAPH ?g { ?s ?p ?o }. values ?g {<http://example#v1>}
>>> }
>>>
>>> The interface shows an error/message for the second line saying
>>> (graph ?g): This line is invalid. Expected: VAR1, VAR2...
>>>
>>> This is the returned results:
>>> {
>>> "readyState": 4,
>>> "responseText": "",
>>> "status": 200,
>>> "statusText": "OK"
>>> }
>>>
>>>
>>> Thank you,
>>> Ahmed.
>>>
>>>
>>>
>>> ________________________________
>>> From: Rob Vesse <rv...@dotnetrdf.org>
>>> Sent: Thursday, December 3, 2020 4:00 AM
>>> To: users@jena.apache.org <us...@jena.apache.org>
>>> Subject: Re: Construct Quads on Apache Jena Fuseki
>>>
>>> The list does not permit attachments so we cannot see screenshots.
>>> Please provide the example query that is failing and the error/log
>>> message(s) you see in relation to the failure
>>>
>>>
>>>
>>> Rob
>>>
>>>
>>>
>>> From: Ahmed Helal <ah...@mail.concordia.ca>
>>> Reply to: <us...@jena.apache.org>
>>> Date: Thursday, 3 December 2020 at 06:26
>>> To: "users@jena.apache.org" <us...@jena.apache.org>
>>> Subject: Construct Quads on Apache Jena Fuseki
>>>
>>>
>>>
>>> Hello everyone,
>>>
>>>
>>>
>>> I am trying to construct Quads following the documentation on this
>>> page:
>>>
>>> https://jena.apache.org/documentation/query/construct-quad.html
>>>
>>>
>>>
>>> However, when I write my script on Apache Jena Fuseki, it complains.
>>> I have attached a screenshot below
>>>
>>>
>>>
>>>
>>>
>>> Thank you,
>>>
>>> Ahmed Helal.
>>>
>>>
>>>
>>> Note: The script in the screenshot is just for the sake of the example
>>>
>>>
>>
Re: Construct Quads on Apache Jena Fuseki
Posted by Andy Seaborne <an...@apache.org>.
ARQ supports GRAPH in CONSTRUCT.
Need to use for a suitable MIME type for quads.
PREFIX : <http://example.com/>
CONSTRUCT
{ GRAPH ?g { ?s ?p ?o } }
WHERE
{
VALUES ?g { :g1 :g2 }
GRAPH ?g { ?s ?p ?o }
}
Andy
On 26/05/2021 12:46, Mikael Pesonen wrote:
>
> Hi,
>
> sorry for replying to old thread. I would like to dump some graphs from
> corrupted db. Is there a way to dump them with one quad query instead of
> dumping each graph separately as triples?
>
> On 03/12/2020 16.23, Ahmed Helal wrote:
>> Hi,
>>
>> My query is:
>> CONSTRUCT {
>> graph ?g
>> {?s ?p ?o}
>> }
>> WHERE{
>> GRAPH ?g { ?s ?p ?o }. values ?g {<http://example#v1>}
>> }
>>
>> The interface shows an error/message for the second line saying (graph
>> ?g): This line is invalid. Expected: VAR1, VAR2...
>>
>> This is the returned results:
>> {
>> "readyState": 4,
>> "responseText": "",
>> "status": 200,
>> "statusText": "OK"
>> }
>>
>>
>> Thank you,
>> Ahmed.
>>
>>
>>
>> ________________________________
>> From: Rob Vesse <rv...@dotnetrdf.org>
>> Sent: Thursday, December 3, 2020 4:00 AM
>> To: users@jena.apache.org <us...@jena.apache.org>
>> Subject: Re: Construct Quads on Apache Jena Fuseki
>>
>> The list does not permit attachments so we cannot see screenshots.
>> Please provide the example query that is failing and the error/log
>> message(s) you see in relation to the failure
>>
>>
>>
>> Rob
>>
>>
>>
>> From: Ahmed Helal <ah...@mail.concordia.ca>
>> Reply to: <us...@jena.apache.org>
>> Date: Thursday, 3 December 2020 at 06:26
>> To: "users@jena.apache.org" <us...@jena.apache.org>
>> Subject: Construct Quads on Apache Jena Fuseki
>>
>>
>>
>> Hello everyone,
>>
>>
>>
>> I am trying to construct Quads following the documentation on this page:
>>
>> https://jena.apache.org/documentation/query/construct-quad.html
>>
>>
>>
>> However, when I write my script on Apache Jena Fuseki, it complains. I
>> have attached a screenshot below
>>
>>
>>
>>
>>
>> Thank you,
>>
>> Ahmed Helal.
>>
>>
>>
>> Note: The script in the screenshot is just for the sake of the example
>>
>>
>