You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/10/01 12:13:33 UTC
[jira] [Commented] (JENA-794) Writing JSON-LD causes a graph name
of "urn:x-arq:DefaultGraphNode"
[ https://issues.apache.org/jira/browse/JENA-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14154626#comment-14154626 ]
ASF subversion and git services commented on JENA-794:
------------------------------------------------------
Commit f61b21d1a0664867c0d0bc49977c73f5eb6d65b3 in jena's branch refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=f61b21d ]
JENA-794 : If default graph, don't write graph name.
> Writing JSON-LD causes a graph name of "urn:x-arq:DefaultGraphNode"
> -------------------------------------------------------------------
>
> Key: JENA-794
> URL: https://issues.apache.org/jira/browse/JENA-794
> Project: Apache Jena
> Issue Type: Bug
> Components: RIOT
> Affects Versions: Jena 2.12.0
> Reporter: Andy Seaborne
>
> {noformat}
> Graph g = GraphFactory.createGraphMem() ;
> g.add(SSE.parseTriple("(:s :p :o)")) ;
> RDFDataMgr.write(System.out, g, Lang.JSONLD) ;
> {noformat}
> outputs
> {noformat}
> {
> "@graph" : [ {
> "@id" : "http://example/s",
> "p" : "http://example/o"
> } ],
> "@id" : "urn:x-arq:DefaultGraphNode",
> "@context" : {
> "p" : {
> "@id" : "http://example/p",
> "@type" : "@id"
> }
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)