Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Schema Serializations

zazi edited this page Dec 1, 2014 · 4 revisions

Here are some proposals for serializing a schema (i.e. the attribute paths).

note: these proposals are already implemented and available in the source code

  • Minimal JSON schema
    • example: MABxml (see here)
["http://www.w3.org/1999/02/22-rdf-syntax-ns#type", 
 "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#typ", 
 "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#status", 
 "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#mabVersion", {
    "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feld": 
   ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type", 
    "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#nr", 
    "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#ind",
    "http://www.w3.org/1999/02/22-rdf-syntax-ns#value", {
        "http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#tf": 
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
    }]
}]
  • All attribute paths of a schema
    • example: MABxml (see here)
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#typ
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#status
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#mabVersion
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feld
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.ddb.de/professionell/mabxml/mabxml-1.xsd#nr
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.ddb.de/professionell/mabxml/mabxml-1.xsd#ind
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.w3.org/1999/02/22-rdf-syntax-ns#value
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.ddb.de/professionell/mabxml/mabxml-1.xsd#tf
http://www.ddb.de/professionell/mabxml/mabxml-1.xsd#feldhttp://www.ddb.de/professionell/mabxml/mabxml-1.xsd#tfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#type

note: the delimiter (which is a special UTF-8 character) between the URIs is not displayed

Clone this wiki locally