Re: CMS diff: Writing RDF in Apache Jena

2019-03-13 Thread Andy Seaborne

Done - thanks for that correction.

On 13/02/2019 16:28, David LJ wrote:

Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdf-output.mdtext

David LJ

Index: trunk/content/documentation/io/rdf-output.mdtext
===
--- trunk/content/documentation/io/rdf-output.mdtext(revision 1853471)
+++ trunk/content/documentation/io/rdf-output.mdtext(working copy)
@@ -313,7 +313,7 @@
  cases.
  
  What can be done, and how it can be, is explained in the

-[sample 
code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java).
+[sample 
code](https://github.com/apache/jena/blob/master/jena-arq/src-examples/arq/examples/riot/Ex_WriteJsonLD.java).
  
  ### RDF Binary
  



CMS diff: Writing RDF in Apache Jena

2019-02-13 Thread David LJ
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdf-output.mdtext

David LJ

Index: trunk/content/documentation/io/rdf-output.mdtext
===
--- trunk/content/documentation/io/rdf-output.mdtext(revision 1853471)
+++ trunk/content/documentation/io/rdf-output.mdtext(working copy)
@@ -313,7 +313,7 @@
 cases.
 
 What can be done, and how it can be, is explained in the 
-[sample 
code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java).
+[sample 
code](https://github.com/apache/jena/blob/master/jena-arq/src-examples/arq/examples/riot/Ex_WriteJsonLD.java).
 
 ### RDF Binary
 



Re: CMS diff: Writing RDF in Apache Jena

2016-10-16 Thread Bruno P. Kinoshita
Checked http://jena.staging.apache.org/documentation/io/rdf-output#json-ld, and 
the tables look all right to me.

Could you confirm what is wrong in the formatting? Was it supposed to be a 
striped table perhaps?

Not a CSS experct but happy to try to help :)

B


>
> From: Andy Seaborne 
>To: dev@jena.apache.org 
>Sent: Monday, 17 October 2016 12:50 AM
>Subject: Re: CMS diff: Writing RDF in Apache Jena
> 
>
>Hi there,
>
>JSON-LD documentation added - I move it up the page so as to give it a 
>bit more prominence (YMMV).
>
>The table formatting is wrong - this is some change (in CMS?) and it 
>affects all pages, all tables. Same with the code boxes.
>
>Any CSS experts?
>
> Andy
>
>
>
>On 15/10/16 10:57, fpservant wrote:
>> Clone URL (Committers only):
>> https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdf-output.mdtext
>>
>> fpservant
>>
>> Index: trunk/content/documentation/io/rdf-output.mdtext
>> ===
>> --- trunk/content/documentation/io/rdf-output.mdtext(revision 1655891)
>> +++ trunk/content/documentation/io/rdf-output.mdtext(working copy)
>> @@ -16,6 +16,7 @@
>>- [N-Triples and N-Quads](#n-triples-and-n-quads)
>>- [RDF Thrift](#rdf-thrift)
>>- [RDF/XML](#rdfxml)
>> +  - [JSON-LD](#json-ld)
>>  - [Examples](#examples)
>>  - [Notes](#Notes)
>>
>> @@ -316,6 +317,20 @@
>>  | RDFXML| RDFXML_PRETTY, RDF_XML_ABBREV | "RDF/XML-ABBREV" |
>>  | RDFXML_PLAIN || "RDF/XML"|
>>
>> +### JSON-LD
>> +
>> +JSON-LD output is supported, in its various flavors ("compacted", 
>> "expanded", "flattened", "framed"),
>> +by using one of the following RDFFormats:
>> +
>> +JSONLD_EXPAND_PRETTY, JSONLD_EXPAND_FLAT, JSONLD_COMPACT_PRETTY, 
>> JSONLD_COMPACT_FLAT, JSONLD_FLATTEN_PRETTY, JSONLD_FLATTEN_FLAT, 
>> JSONLD_FRAME_PRETTY, JSONLD_FRAME_FLAT
>> +
>> +The JSONLD and JSONLD_PRETTY are identical to JSONLD_COMPACT_PRETTY.
>> +
>> +Output can be customized, passing more info to the writer by using the 
>> "Context" mechanism provided by Jena.
>> +Same mechanism must be used to pass the "frame" in the JSONLD_FRAME_PRETTY 
>> and JSONLD_FRAME_FLAT cases.
>> +
>> +What can be done, and how it can be, is explained in the [sample 
>> code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java)
>> +
>>  ## Examples
>>
>>  Example code may be found in 
>> [jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).
>>
>
>
>


Re: CMS diff: Writing RDF in Apache Jena

2016-10-16 Thread Andy Seaborne

Hi there,

JSON-LD documentation added - I move it up the page so as to give it a 
bit more prominence (YMMV).


The table formatting is wrong - this is some change (in CMS?) and it 
affects all pages, all tables. Same with the code boxes.


Any CSS experts?

Andy


On 15/10/16 10:57, fpservant wrote:

Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdf-output.mdtext

fpservant

Index: trunk/content/documentation/io/rdf-output.mdtext
===
--- trunk/content/documentation/io/rdf-output.mdtext(revision 1655891)
+++ trunk/content/documentation/io/rdf-output.mdtext(working copy)
@@ -16,6 +16,7 @@
   - [N-Triples and N-Quads](#n-triples-and-n-quads)
   - [RDF Thrift](#rdf-thrift)
   - [RDF/XML](#rdfxml)
+  - [JSON-LD](#json-ld)
 - [Examples](#examples)
 - [Notes](#Notes)

@@ -316,6 +317,20 @@
 | RDFXML| RDFXML_PRETTY, RDF_XML_ABBREV | "RDF/XML-ABBREV" |
 | RDFXML_PLAIN || "RDF/XML"|

+### JSON-LD
+
+JSON-LD output is supported, in its various flavors ("compacted", "expanded", 
"flattened", "framed"),
+by using one of the following RDFFormats:
+
+JSONLD_EXPAND_PRETTY, JSONLD_EXPAND_FLAT, JSONLD_COMPACT_PRETTY, 
JSONLD_COMPACT_FLAT, JSONLD_FLATTEN_PRETTY, JSONLD_FLATTEN_FLAT, 
JSONLD_FRAME_PRETTY, JSONLD_FRAME_FLAT
+
+The JSONLD and JSONLD_PRETTY are identical to JSONLD_COMPACT_PRETTY.
+
+Output can be customized, passing more info to the writer by using the 
"Context" mechanism provided by Jena.
+Same mechanism must be used to pass the "frame" in the JSONLD_FRAME_PRETTY and 
JSONLD_FRAME_FLAT cases.
+
+What can be done, and how it can be, is explained in the [sample 
code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java)
+
 ## Examples

 Example code may be found in 
[jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).



CMS diff: Writing RDF in Apache Jena

2016-10-15 Thread fpservant
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Fio%2Frdf-output.mdtext

fpservant

Index: trunk/content/documentation/io/rdf-output.mdtext
===
--- trunk/content/documentation/io/rdf-output.mdtext(revision 1655891)
+++ trunk/content/documentation/io/rdf-output.mdtext(working copy)
@@ -16,6 +16,7 @@
   - [N-Triples and N-Quads](#n-triples-and-n-quads)
   - [RDF Thrift](#rdf-thrift)
   - [RDF/XML](#rdfxml)
+  - [JSON-LD](#json-ld)
 - [Examples](#examples)
 - [Notes](#Notes)
 
@@ -316,6 +317,20 @@
 | RDFXML| RDFXML_PRETTY, RDF_XML_ABBREV | "RDF/XML-ABBREV" |
 | RDFXML_PLAIN || "RDF/XML"|
 
+### JSON-LD
+
+JSON-LD output is supported, in its various flavors ("compacted", "expanded", 
"flattened", "framed"), 
+by using one of the following RDFFormats:
+
+JSONLD_EXPAND_PRETTY, JSONLD_EXPAND_FLAT, JSONLD_COMPACT_PRETTY, 
JSONLD_COMPACT_FLAT, JSONLD_FLATTEN_PRETTY, JSONLD_FLATTEN_FLAT, 
JSONLD_FRAME_PRETTY, JSONLD_FRAME_FLAT
+
+The JSONLD and JSONLD_PRETTY are identical to JSONLD_COMPACT_PRETTY.
+
+Output can be customized, passing more info to the writer by using the 
"Context" mechanism provided by Jena.
+Same mechanism must be used to pass the "frame" in the JSONLD_FRAME_PRETTY and 
JSONLD_FRAME_FLAT cases.
+
+What can be done, and how it can be, is explained in the [sample 
code](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java)
+
 ## Examples
 
 Example code may be found in 
[jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).