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..6a918da --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +Files here correspond as follows to the Recommended Practice document +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. + +* 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 + * *no example* - "Example JSON implementation that + specifies only that the resource is free-to-read" + * *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" + * 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 70% rename from niso-ali-1.0.xsd rename to ali.xsd index 079e234..db9ea0e 100644 --- a/niso-ali-1.0.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 new file mode 100644 index 0000000..19e5814 --- /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": "@id" }, + "license_ref": { "@type": "@id" }, + "uri": { "@type": "@id" }, + "start_date": { "@type": "xsd:date" }, + "end_date": { "@type": "xsd:date" } + } +} 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" } - } -}