[jira] [Updated] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread A. Soroka (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

A. Soroka updated JENA-1338:

Flags:   (was: Important)

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread A. Soroka (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16017720#comment-16017720
 ] 

A. Soroka commented on JENA-1338:
-

Yes, that is definitely true. How you would do that would depend a bit on your 
circumstances. As [~fps61] points out, there are toolkits for framing for 
several different languages. In the meantime, we can look at Riot and see what 
to do there. I agree that exposing all the possible output functionalities is a 
good thing to do for the CLI tools.

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread Laura (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16017494#comment-16017494
 ] 

Laura commented on JENA-1338:
-

> it's not obvious that such would be the best approach (in the absence of a 
> spec) for Fuseki

yeah I also agree that following the specs is important. Perhaps use a 
temporary solution, or wait until the spec is defined. If it's true that "you 
can parse the jsonld that you receive from Fuseki, and then convert it using a 
frame" then I think it's OK to wait until a spec has been defined. It's a 
little annoyance but it works. Hoping that they will however work to fix the 
specs :)

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread A. Soroka (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16017436#comment-16017436
 ] 

A. Soroka commented on JENA-1338:
-

I can see that working for Riot, but it's not obvious that such would be the 
best approach (in the absence of a spec) for Fuseki.

Let's look at doing a new param for Riot for now, okay?

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (JENA-1339) Property Function signature for List subjects and List objects.

2017-05-19 Thread Greg Albiston (JIRA)
Greg Albiston created JENA-1339:
---

 Summary: Property Function signature for List subjects and List 
objects.
 Key: JENA-1339
 URL: https://issues.apache.org/jira/browse/JENA-1339
 Project: Apache Jena
  Issue Type: Improvement
  Components: ARQ
Affects Versions: Jena 3.3.0
Reporter: Greg Albiston
Priority: Minor
 Fix For: Jena 3.4.0
 Attachments: PFuncListAndList.patch

An abstract Property Function signature is already defined for single subject 
and multiple objects but there is no signature for multiple subject and 
multiple objects. 

SPIN permits defining property functions (magic properties) with this n:n 
signature.

The patch is a single class PFuncListAndList with formatting based upon the 
existing PFuncSimpleAndList class.

Documentation will need updating at: 
https://jena.apache.org/documentation/query/writing_propfuncs.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (JENA-1339) Property Function signature for List subjects and List objects.

2017-05-19 Thread Greg Albiston (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Greg Albiston updated JENA-1339:

Attachment: PFuncListAndList.patch

> Property Function signature for List subjects and List objects.
> ---
>
> Key: JENA-1339
> URL: https://issues.apache.org/jira/browse/JENA-1339
> Project: Apache Jena
>  Issue Type: Improvement
>  Components: ARQ
>Affects Versions: Jena 3.3.0
>Reporter: Greg Albiston
>Priority: Minor
>  Labels: easyfix, newbie
> Fix For: Jena 3.4.0
>
> Attachments: PFuncListAndList.patch
>
>
> An abstract Property Function signature is already defined for single subject 
> and multiple objects but there is no signature for multiple subject and 
> multiple objects. 
> SPIN permits defining property functions (magic properties) with this n:n 
> signature.
> The patch is a single class PFuncListAndList with formatting based upon the 
> existing PFuncSimpleAndList class.
> Documentation will need updating at: 
> https://jena.apache.org/documentation/query/writing_propfuncs.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread Laura (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16016998#comment-16016998
 ] 

Laura edited comment on JENA-1338 at 5/19/17 7:27 AM:
--

> how would you pass the frame to the program that makes the output?

The simplest way imo would be to have a {{\-\-frame=}} argument on Fuseki/RIOT.


was (Author: lauretas):
> how would you pass the frame to the program that makes the output?

The simplest way imo would be to have a {{\-\-context=}} argument on 
Fuseki/RIOT.

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (JENA-1338) JSON-LD framing not working

2017-05-19 Thread Laura (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16016998#comment-16016998
 ] 

Laura commented on JENA-1338:
-

> how would you pass the frame to the program that makes the output?

The simplest way imo would be to have a {{\-\-context=}} argument on 
Fuseki/RIOT.

> JSON-LD framing not working
> ---
>
> Key: JENA-1338
> URL: https://issues.apache.org/jira/browse/JENA-1338
> Project: Apache Jena
>  Issue Type: Bug
>  Components: Fuseki
>Affects Versions: Jena 3.3.0
> Environment: GNU/Linux
>Reporter: Laura
>  Labels: features
>
> According to the 
> [documentation|https://jena.apache.org/documentation/io/rdf-output.html#json-ld]
>  "JSON-LD output is supported, in its various flavors ("compacted", 
> "expanded", "flattened", "framed")" but there is no way to tell Jena which 
> one of these to use. In particular it's not possible to obtain "framed 
> JSON-LD" as an output format when querying Fuseki (CONSTRUCT queries).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)