brreg / begrepspubliserer

Project to host code for service that publish concepts to external enpoint in the SKOS standard
Apache License 2.0
1 stars 0 forks source link

APIets representasjon av begrepssamlingenen i application/json ser "merkelig" ut. #3

Open stigbd opened 5 years ago

stigbd commented 5 years ago

API gir application/json på førespørsel. Imidlertid ser denne litt merkelig ut. Mellom anna ser det ut til at ein heil del "blind-nodes" (rdf) er inkludert. Er application/json representasjonen korrekt?

Eksempel ( curl -H "Accept: application/json" https://data.brreg.no/begrep/ ):

"_:943eaa92-c8cf-43c1-9b81-4e95d455af70" : {
    "http://www.w3.org/2008/05/skos-xl#literalForm" : [ {
      "type" : "literal" ,
      "value" : "pantobjekt" ,
      "lang" : "nb"
    }
     ] ,
    "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ {
      "type" : "uri" ,
      "value" : "http://www.w3.org/2008/05/skos-xl#Label"
    }
     ]
  }
   ,
  "_:13d87e8d-d16d-424d-aae4-44d0974e1259" : {
    "http://www.w3.org/2008/05/skos-xl#literalForm" : [ {
      "type" : "literal" ,
      "value" : "forpliktede" ,
      "lang" : "nb"
    }
     ] ,
    "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ {
      "type" : "uri" ,
      "value" : "http://www.w3.org/2008/05/skos-xl#Label"
    }
     ]
  }
   ,