From b6421bac4a827bedf61efbbfbb7bbef3a834ffcb Mon Sep 17 00:00:00 2001 From: Chris Maloney Date: Fri, 15 May 2015 15:58:18 -0400 Subject: [PATCH 1/3] Get all files into the match the RP exactly --- .gitignore | 1 + README.md | 29 ++++++++++ niso-ali-1.0.xsd => ali.xsd | 11 ++-- examples/free-to-read-indefinitely.json | 4 ++ examples/free-to-read-indefinitely.rdf | 24 +++----- examples/free-to-read-indefinitely.xmp | 37 ++++++------ examples/free-to-read-period.json | 6 +- examples/free-to-read-period.xml | 11 ++++ examples/free-to-read-periods.rdf | 11 ++-- examples/free-to-read-periods.xmp | 77 ++++++++++++------------- examples/license-only.json | 13 ++--- examples/license-with-start-date.json | 16 +++-- examples/two-licenses.json | 24 ++++---- jsonld.json | 11 ++++ niso-ali-1.0.json | 11 ---- 15 files changed, 154 insertions(+), 132 deletions(-) create mode 100644 .gitignore create mode 100644 README.md rename niso-ali-1.0.xsd => ali.xsd (61%) create mode 100644 examples/free-to-read-indefinitely.json create mode 100644 examples/free-to-read-period.xml create mode 100644 jsonld.json delete mode 100644 niso-ali-1.0.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..527f7ae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +OxygenProject.xpr diff --git a/README.md b/README.md new file mode 100644 index 0000000..fb90b07 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +Files here correspond as follows to the Recommended Practice document +NISO RP-22-2015, January 5, 2015. + +These are in the order that they appear in the RP document. + +* Appendix A.1 - XML Implementation + * ali.xsd - "Example: XML stand-alone schema with referenced namespace" + * examples/free-to-read-period.xml - "Example of XML using above schema" +* Appendix - A.2 PDF Metadata Implementation + * examples/free-to-read-periods.xmp - XMP, first example + * examples/free-to-read-indefinitely.xmp - "Example of without + date restrictions" +* Appendix A.3 - RDF + * examples/free-to-read-periods.rdf - first example + * examples/free-to-read-indefinitely.rdf - "Example of without + date restrictions" +* Appendix A.4 - JSON Implementation + * examples/free-to-read-indefinitely.json - "Example JSON implementation that + specifies only that the resource is free-to-read" + * examples/free-to-read-period.json - "Example JSON implementation with start + and end date for free_to_read" + * examples/license-only.json - "Example JSON implementation that specifies + free-to-read, as well as giving a license URI" + * examples/license-with-start-date.json - "Example JSON implementation that + specifies a start date for the license" + * examples/two-licenses.json - "Example JSON implementation of two licenses, + each with different start dates" + * jsonld.json - "JSON Context" + diff --git a/niso-ali-1.0.xsd b/ali.xsd similarity index 61% rename from niso-ali-1.0.xsd rename to ali.xsd index 079e234..36dfd5e 100644 --- a/niso-ali-1.0.xsd +++ b/ali.xsd @@ -1,20 +1,19 @@ + targetNamespace="http://www.niso.org/schemas/ali/1.0/"> - + - - - + + + - diff --git a/examples/free-to-read-indefinitely.json b/examples/free-to-read-indefinitely.json new file mode 100644 index 0000000..fb45f6f --- /dev/null +++ b/examples/free-to-read-indefinitely.json @@ -0,0 +1,4 @@ +{ + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": true +} \ No newline at end of file diff --git a/examples/free-to-read-indefinitely.rdf b/examples/free-to-read-indefinitely.rdf index 51e52fd..c09c6e3 100644 --- a/examples/free-to-read-indefinitely.rdf +++ b/examples/free-to-read-indefinitely.rdf @@ -1,25 +1,15 @@ - + A Breakthrough Paper - - - 2014-12-24 - + true - - 2014-11-01 - - - - - 2015-11-01 + 2014-01-01 - + \ No newline at end of file diff --git a/examples/free-to-read-indefinitely.xmp b/examples/free-to-read-indefinitely.xmp index 012d01e..dca2d76 100644 --- a/examples/free-to-read-indefinitely.xmp +++ b/examples/free-to-read-indefinitely.xmp @@ -1,19 +1,20 @@ - - - - A Breakthrough Paper - - - - - 2014-12-24 - - - - - + + + + A Breakthrough Paper + true + + + + 2014-01-01 + http://www.psychoceramics.org/ + open_license.html + + + + + diff --git a/examples/free-to-read-period.json b/examples/free-to-read-period.json index 645dbbc..87452dd 100644 --- a/examples/free-to-read-period.json +++ b/examples/free-to-read-period.json @@ -1,7 +1,7 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { "start_date": "2013-02-03", "end_date": "2013-10-03" - } + } } diff --git a/examples/free-to-read-period.xml b/examples/free-to-read-period.xml new file mode 100644 index 0000000..8c4742f --- /dev/null +++ b/examples/free-to-read-period.xml @@ -0,0 +1,11 @@ + + ... + + + http://www.examplesite.org/open_license.html + + ... + diff --git a/examples/free-to-read-periods.rdf b/examples/free-to-read-periods.rdf index 0345e04..5c1850b 100644 --- a/examples/free-to-read-periods.rdf +++ b/examples/free-to-read-periods.rdf @@ -1,9 +1,8 @@ - + A Breakthrough Paper @@ -28,4 +27,4 @@ - + \ No newline at end of file diff --git a/examples/free-to-read-periods.xmp b/examples/free-to-read-periods.xmp index bc8a780..feaa583 100644 --- a/examples/free-to-read-periods.xmp +++ b/examples/free-to-read-periods.xmp @@ -1,41 +1,38 @@ - - - - A Breakthrough Paper - - - - - 2014-12-24 - 2014-12-31 - - - - 2015-02-14 - 2015-02-14 - - - - - - - - 2014-11-01 - http://www.psychoceramics.org/ - license_v1.html - - - - 2015-11-01 - http://www.psychoceramics.org/ - open_license.html - - - - - + + + + A Breakthrough Paper + + + + + 2014-12-24 + 2014-12-31 + + + + 2015-02-14 + 2015-02-14 + + + + + + + + 2014-11-01 + http://www.psychoceramics.org/ license_v1.html + + + + 2015-11-01 + http://www.psychoceramics.org/ open_license.html + + + + + diff --git a/examples/license-only.json b/examples/license-only.json index 1535eb0..4934fa5 100644 --- a/examples/license-only.json +++ b/examples/license-only.json @@ -1,10 +1,5 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" - }, - "license_ref": { - "uri": "http://creativecommons.org/licenses/3.0/" - } -} - + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": true, + "license_ref": "http://creativecommons.org/licenses/by/3.0/" +} \ No newline at end of file diff --git a/examples/license-with-start-date.json b/examples/license-with-start-date.json index c2351f4..c39c632 100644 --- a/examples/license-with-start-date.json +++ b/examples/license-with-start-date.json @@ -1,10 +1,8 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" - }, - "license_ref": { - "uri": "http://creativecommons.org/licenses/3.0/", - "start_date": "2014-04-04" - } -} + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": true, + "license_ref": { + "start_date": "2014-04-04", + "uri": "http://creativecommons.org/licenses/by/3.0/" + } +} \ No newline at end of file diff --git a/examples/two-licenses.json b/examples/two-licenses.json index bae151e..111b0b9 100644 --- a/examples/two-licenses.json +++ b/examples/two-licenses.json @@ -1,16 +1,14 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": true, + "license_ref": [ + { + "start_date": "2014-04-04", + "uri": "http://creativecommons.org/licenses/by/3.0/" }, - "license_ref": [ - { - "start_date": "2014-04-04", - "uri": "http://creativecommons.org/licenses/by/3.0/" - }, - { - "start_date": "2015-04-04", - "uri": "http://creativecommons.org/licenses/by/4.0/" - } - ] + { + "start_date": "2015-04-04", + "uri": "http://creativecommons.org/licenses/by/4.0/" + } + ] } diff --git a/jsonld.json b/jsonld.json new file mode 100644 index 0000000..380ce75 --- /dev/null +++ b/jsonld.json @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://www.niso.org/schemas/ali/1.0/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "free_to_read": { "@type": "xsd:boolean" }, + "license_ref": { "@type": "@id" }, + "uri": { "@type": "@id" }, + "start_date": { "@type": "xsd:date" }, + "end_date": { "@type": "xsd:date" } + } +} \ No newline at end of file diff --git a/niso-ali-1.0.json b/niso-ali-1.0.json deleted file mode 100644 index f1ac788..0000000 --- a/niso-ali-1.0.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "@vocab": "http://www.niso.org/schemas/ali/1.0/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "free_to_read": { "@type": "@id" }, - "license_ref": { "@type": "@id" }, - "uri": { "@type": "@id" }, - "start_date": { "@type": "xsd:date" }, - "end_date": { "@type": "xsd:date" } - } -} From 532c56ee3ab67628b4a331f12184214453efd54b Mon Sep 17 00:00:00 2001 From: Chris Maloney Date: Fri, 15 May 2015 16:16:31 -0400 Subject: [PATCH 2/3] Put repository back to the state it was at at 96af6fd89e11e0, with these exceptions: * Keep README.md and .gitignore * Change the names of the schema files: * niso-ali-1.0.xsd -> ali.xsd * niso-ali-1.0.json -> jsonld.json --- README.md | 8 ++- ali.xsd | 11 ++-- examples/free-to-read-indefinitely.json | 4 -- examples/free-to-read-indefinitely.rdf | 24 +++++--- examples/free-to-read-indefinitely.xmp | 37 ++++++------ examples/free-to-read-period.json | 6 +- examples/free-to-read-period.xml | 11 ---- examples/free-to-read-periods.rdf | 11 ++-- examples/free-to-read-periods.xmp | 77 +++++++++++++------------ examples/license-only.json | 13 +++-- examples/license-with-start-date.json | 16 ++--- examples/two-licenses.json | 24 ++++---- jsonld.json | 20 +++---- 13 files changed, 136 insertions(+), 126 deletions(-) delete mode 100644 examples/free-to-read-indefinitely.json delete mode 100644 examples/free-to-read-period.xml diff --git a/README.md b/README.md index fb90b07..6a918da 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ Files here correspond as follows to the Recommended Practice document -NISO RP-22-2015, January 5, 2015. +NISO RP-22-2015, January 5, 2015. Note that these versions are more recent, +and might include changes since that version of the RP document was +published. These are in the order that they appear in the RP document. @@ -15,9 +17,9 @@ These are in the order that they appear in the RP document. * examples/free-to-read-indefinitely.rdf - "Example of without date restrictions" * Appendix A.4 - JSON Implementation - * examples/free-to-read-indefinitely.json - "Example JSON implementation that + * *no example* - "Example JSON implementation that specifies only that the resource is free-to-read" - * examples/free-to-read-period.json - "Example JSON implementation with start + * *no example* - "Example JSON implementation with start and end date for free_to_read" * examples/license-only.json - "Example JSON implementation that specifies free-to-read, as well as giving a license URI" diff --git a/ali.xsd b/ali.xsd index 36dfd5e..079e234 100644 --- a/ali.xsd +++ b/ali.xsd @@ -1,19 +1,20 @@ + targetNamespace="http://www.niso.org/schemas/ali/1.0/"> - + - - - + + + + diff --git a/examples/free-to-read-indefinitely.json b/examples/free-to-read-indefinitely.json deleted file mode 100644 index fb45f6f..0000000 --- a/examples/free-to-read-indefinitely.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": true -} \ No newline at end of file diff --git a/examples/free-to-read-indefinitely.rdf b/examples/free-to-read-indefinitely.rdf index c09c6e3..51e52fd 100644 --- a/examples/free-to-read-indefinitely.rdf +++ b/examples/free-to-read-indefinitely.rdf @@ -1,15 +1,25 @@ - + A Breakthrough Paper - true + + + 2014-12-24 + - 2014-01-01 + + 2014-11-01 + + + + + 2015-11-01 - \ No newline at end of file + diff --git a/examples/free-to-read-indefinitely.xmp b/examples/free-to-read-indefinitely.xmp index dca2d76..012d01e 100644 --- a/examples/free-to-read-indefinitely.xmp +++ b/examples/free-to-read-indefinitely.xmp @@ -1,20 +1,19 @@ - - - - A Breakthrough Paper - true - - - - 2014-01-01 - http://www.psychoceramics.org/ - open_license.html - - - - - + + + + A Breakthrough Paper + + + + + 2014-12-24 + + + + + diff --git a/examples/free-to-read-period.json b/examples/free-to-read-period.json index 87452dd..645dbbc 100644 --- a/examples/free-to-read-period.json +++ b/examples/free-to-read-period.json @@ -1,7 +1,7 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { "start_date": "2013-02-03", "end_date": "2013-10-03" - } + } } diff --git a/examples/free-to-read-period.xml b/examples/free-to-read-period.xml deleted file mode 100644 index 8c4742f..0000000 --- a/examples/free-to-read-period.xml +++ /dev/null @@ -1,11 +0,0 @@ - - ... - - - http://www.examplesite.org/open_license.html - - ... - diff --git a/examples/free-to-read-periods.rdf b/examples/free-to-read-periods.rdf index 5c1850b..0345e04 100644 --- a/examples/free-to-read-periods.rdf +++ b/examples/free-to-read-periods.rdf @@ -1,8 +1,9 @@ - + A Breakthrough Paper @@ -27,4 +28,4 @@ - \ No newline at end of file + diff --git a/examples/free-to-read-periods.xmp b/examples/free-to-read-periods.xmp index feaa583..bc8a780 100644 --- a/examples/free-to-read-periods.xmp +++ b/examples/free-to-read-periods.xmp @@ -1,38 +1,41 @@ - - - - A Breakthrough Paper - - - - - 2014-12-24 - 2014-12-31 - - - - 2015-02-14 - 2015-02-14 - - - - - - - - 2014-11-01 - http://www.psychoceramics.org/ license_v1.html - - - - 2015-11-01 - http://www.psychoceramics.org/ open_license.html - - - - - + + + + A Breakthrough Paper + + + + + 2014-12-24 + 2014-12-31 + + + + 2015-02-14 + 2015-02-14 + + + + + + + + 2014-11-01 + http://www.psychoceramics.org/ + license_v1.html + + + + 2015-11-01 + http://www.psychoceramics.org/ + open_license.html + + + + + diff --git a/examples/license-only.json b/examples/license-only.json index 4934fa5..1535eb0 100644 --- a/examples/license-only.json +++ b/examples/license-only.json @@ -1,5 +1,10 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": true, - "license_ref": "http://creativecommons.org/licenses/by/3.0/" -} \ No newline at end of file + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" + }, + "license_ref": { + "uri": "http://creativecommons.org/licenses/3.0/" + } +} + diff --git a/examples/license-with-start-date.json b/examples/license-with-start-date.json index c39c632..c2351f4 100644 --- a/examples/license-with-start-date.json +++ b/examples/license-with-start-date.json @@ -1,8 +1,10 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": true, - "license_ref": { - "start_date": "2014-04-04", - "uri": "http://creativecommons.org/licenses/by/3.0/" - } -} \ No newline at end of file + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" + }, + "license_ref": { + "uri": "http://creativecommons.org/licenses/3.0/", + "start_date": "2014-04-04" + } +} diff --git a/examples/two-licenses.json b/examples/two-licenses.json index 111b0b9..bae151e 100644 --- a/examples/two-licenses.json +++ b/examples/two-licenses.json @@ -1,14 +1,16 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": true, - "license_ref": [ - { - "start_date": "2014-04-04", - "uri": "http://creativecommons.org/licenses/by/3.0/" + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" }, - { - "start_date": "2015-04-04", - "uri": "http://creativecommons.org/licenses/by/4.0/" - } - ] + "license_ref": [ + { + "start_date": "2014-04-04", + "uri": "http://creativecommons.org/licenses/by/3.0/" + }, + { + "start_date": "2015-04-04", + "uri": "http://creativecommons.org/licenses/by/4.0/" + } + ] } diff --git a/jsonld.json b/jsonld.json index 380ce75..f1ac788 100644 --- a/jsonld.json +++ b/jsonld.json @@ -1,11 +1,11 @@ { - "@context": { - "@vocab": "http://www.niso.org/schemas/ali/1.0/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "free_to_read": { "@type": "xsd:boolean" }, - "license_ref": { "@type": "@id" }, - "uri": { "@type": "@id" }, - "start_date": { "@type": "xsd:date" }, - "end_date": { "@type": "xsd:date" } - } -} \ No newline at end of file + "@context": { + "@vocab": "http://www.niso.org/schemas/ali/1.0/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "free_to_read": { "@type": "@id" }, + "license_ref": { "@type": "@id" }, + "uri": { "@type": "@id" }, + "start_date": { "@type": "xsd:date" }, + "end_date": { "@type": "xsd:date" } + } +} From fe550626f3d53d019326118409a42081346967e6 Mon Sep 17 00:00:00 2001 From: Chris Maloney Date: Fri, 15 May 2015 16:23:16 -0400 Subject: [PATCH 3/3] cosmetic changes - tabs -> spaces --- ali.xsd | 8 +-- examples/free-to-read-indefinitely.rdf | 9 ++- examples/free-to-read-indefinitely.xmp | 35 ++++++------ examples/free-to-read-period.json | 10 ++-- examples/free-to-read-periods.rdf | 9 ++- examples/free-to-read-periods.xmp | 77 +++++++++++++------------- examples/license-only.json | 14 ++--- examples/license-with-start-date.json | 16 +++--- examples/two-licenses.json | 26 ++++----- jsonld.json | 18 +++--- 10 files changed, 108 insertions(+), 114 deletions(-) diff --git a/ali.xsd b/ali.xsd index 079e234..db9ea0e 100644 --- a/ali.xsd +++ b/ali.xsd @@ -1,6 +1,6 @@ + targetNamespace="http://www.niso.org/schemas/ali/1.0/"> @@ -10,9 +10,9 @@ - - - + + + diff --git a/examples/free-to-read-indefinitely.rdf b/examples/free-to-read-indefinitely.rdf index 51e52fd..c508020 100644 --- a/examples/free-to-read-indefinitely.rdf +++ b/examples/free-to-read-indefinitely.rdf @@ -1,9 +1,8 @@ - + A Breakthrough Paper diff --git a/examples/free-to-read-indefinitely.xmp b/examples/free-to-read-indefinitely.xmp index 012d01e..2b68ea6 100644 --- a/examples/free-to-read-indefinitely.xmp +++ b/examples/free-to-read-indefinitely.xmp @@ -1,19 +1,18 @@ - - - - A Breakthrough Paper - - - - - 2014-12-24 - - - - - + + + + A Breakthrough Paper + + + + + 2014-12-24 + + + + + diff --git a/examples/free-to-read-period.json b/examples/free-to-read-period.json index 645dbbc..f37abfa 100644 --- a/examples/free-to-read-period.json +++ b/examples/free-to-read-period.json @@ -1,7 +1,7 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2013-02-03", - "end_date": "2013-10-03" - } + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2013-02-03", + "end_date": "2013-10-03" + } } diff --git a/examples/free-to-read-periods.rdf b/examples/free-to-read-periods.rdf index 0345e04..23479ef 100644 --- a/examples/free-to-read-periods.rdf +++ b/examples/free-to-read-periods.rdf @@ -1,9 +1,8 @@ - + A Breakthrough Paper diff --git a/examples/free-to-read-periods.xmp b/examples/free-to-read-periods.xmp index bc8a780..21cc65d 100644 --- a/examples/free-to-read-periods.xmp +++ b/examples/free-to-read-periods.xmp @@ -1,41 +1,38 @@ - - - - A Breakthrough Paper - - - - - 2014-12-24 - 2014-12-31 - - - - 2015-02-14 - 2015-02-14 - - - - - - - - 2014-11-01 - http://www.psychoceramics.org/ - license_v1.html - - - - 2015-11-01 - http://www.psychoceramics.org/ - open_license.html - - - - - + + + + A Breakthrough Paper + + + + + 2014-12-24 + 2014-12-31 + + + + 2015-02-14 + 2015-02-14 + + + + + + + + 2014-11-01 + http://www.psychoceramics.org/ license_v1.html + + + + 2015-11-01 + http://www.psychoceramics.org/ open_license.html + + + + + diff --git a/examples/license-only.json b/examples/license-only.json index 1535eb0..f3809fc 100644 --- a/examples/license-only.json +++ b/examples/license-only.json @@ -1,10 +1,10 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" - }, - "license_ref": { - "uri": "http://creativecommons.org/licenses/3.0/" - } + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" + }, + "license_ref": { + "uri": "http://creativecommons.org/licenses/3.0/" + } } diff --git a/examples/license-with-start-date.json b/examples/license-with-start-date.json index c2351f4..aecc8b3 100644 --- a/examples/license-with-start-date.json +++ b/examples/license-with-start-date.json @@ -1,10 +1,10 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" - }, - "license_ref": { - "uri": "http://creativecommons.org/licenses/3.0/", - "start_date": "2014-04-04" - } + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" + }, + "license_ref": { + "uri": "http://creativecommons.org/licenses/3.0/", + "start_date": "2014-04-04" + } } diff --git a/examples/two-licenses.json b/examples/two-licenses.json index bae151e..0c7dd7e 100644 --- a/examples/two-licenses.json +++ b/examples/two-licenses.json @@ -1,16 +1,16 @@ { - "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", - "free_to_read": { - "start_date": "2014-04-04" + "@context": "http://www.niso.org/schemas/ali/1.0/jsonld.json", + "free_to_read": { + "start_date": "2014-04-04" + }, + "license_ref": [ + { + "start_date": "2014-04-04", + "uri": "http://creativecommons.org/licenses/by/3.0/" }, - "license_ref": [ - { - "start_date": "2014-04-04", - "uri": "http://creativecommons.org/licenses/by/3.0/" - }, - { - "start_date": "2015-04-04", - "uri": "http://creativecommons.org/licenses/by/4.0/" - } - ] + { + "start_date": "2015-04-04", + "uri": "http://creativecommons.org/licenses/by/4.0/" + } + ] } diff --git a/jsonld.json b/jsonld.json index f1ac788..19e5814 100644 --- a/jsonld.json +++ b/jsonld.json @@ -1,11 +1,11 @@ { - "@context": { - "@vocab": "http://www.niso.org/schemas/ali/1.0/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "free_to_read": { "@type": "@id" }, - "license_ref": { "@type": "@id" }, - "uri": { "@type": "@id" }, - "start_date": { "@type": "xsd:date" }, - "end_date": { "@type": "xsd:date" } - } + "@context": { + "@vocab": "http://www.niso.org/schemas/ali/1.0/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "free_to_read": { "@type": "@id" }, + "license_ref": { "@type": "@id" }, + "uri": { "@type": "@id" }, + "start_date": { "@type": "xsd:date" }, + "end_date": { "@type": "xsd:date" } + } }