datatagsuite / examples

DATS example files
http://w3id.org/dats/examples
2 stars 0 forks source link

Context issue: data_acquisition_sdo_context.jsonld #2

Open samuel-kerrien opened 4 years ago

samuel-kerrien commented 4 years ago

Hi guys,

I was looking through all SDO contexts and I noticed that one of them has prefixes outside the @context.

https://github.com/datatagsuite/context/blob/master/sdo/data_acquisition_sdo_context.jsonld

specifically I am talking about the startDate and endDate.

here is the payload:

{
  "@context": {
    "sdo": "https://schema.org/",
    "DataAcquisition": "sdo:CreateAction",
    "identifier": {
      "@id": "sdo:identifier",
      "@type": "sdo:Text"
    },
    "name": {
      "@id": "sdo:name",
      "@type": "sdo:Text"
    },
    "description": {
      "@id": "sdo:description",
      "@type": "sdo:Text"
    },
    "licenses": "sdo:license",
    "version": "sdo:version"
  },
  "startDate": {
    "@id": "sdo:startTime",
    "@type": "sdo:DateTime"
  },
  "endDate": {
    "@id": "sdo:endTime",
    "@type": "sdo:DateTime"
  }
}
proccaserra commented 4 years ago

another good catch @samuel-kerrien, thx for reporting. I have now pushed a fix that should hopefully close this issue.

samuel-kerrien commented 4 years ago

Great, thanks for the quick turn around ;)