skohub-io / skohub-editor

Apache License 2.0
5 stars 4 forks source link

Decouple vocab and lookup URLs #24

Closed acka47 closed 4 years ago

acka47 commented 4 years ago

I would like toenable the lookup of a vocabulary published with SkoHub of which I do not control the namespace: https://skohub.io/acka47/lrmi/heads/master/purl.org/dcx/lrmi-vocabs/learningResourceType/index.html

I am thinking about something like this in the JSON Schema:

{
   "learningResourceType":{
      "title":"Learning Resource Type",
      "type":"object",
      "_widget":{
         "type":"SkohubLookup",
         "url":"https://skohub.io/acka47/lrmi/heads/master/purl.org/dcx/lrmi-vocabs/learningResourceType/index.index"
      },
      "properties":{
         "type":{
            "type":"string",
            "enum":[
               "Concept"
            ]
         },
         "id":{
            "type":"string",
            "format":"uri"
         },
         "inScheme":{
            "type":"object",
            "properties":{
               "id":{
                  "type":"string",
                  "enum":[
                     "http://purl.org/dcx/lrmi-vocabs/learningResourceType/"
                  ]
               }
            }
         }
      }
   }
}