smart-data-models / data-models

Data Models in common use based on real world use-cases. These definitions underpin a digital market of interoperable and replicable smart solutions.
https://smartdatamodels.org/
114 stars 56 forks source link

Broken Links #17

Closed dpatil-fw closed 3 years ago

dpatil-fw commented 3 years ago

At this link https://github.com/smart-data-models/data-models,

Contributions should come in the form of pull requests made against the corresponding Vertical Data Model repository. An introductory presentation about it.

this link for the presentation: https://data-models.fiware.org/index.php/2020/05/15/contribution-manual is broken

Another question. It is confusing to see multiple context.jsonld files. Which among these should be referred for Fiware context?

The links(https://uri.fiware.org) referred within the context.jsonld, for instance, this link: https://uri.fiware.org/ns/data-models#PointOfInterest and others are giving 404 error

jason-fox commented 3 years ago
jason-fox commented 3 years ago

Which among these should be referred for FIWARE context.

https://smart-data-models.github.io/data-models/context.jsonld is probably the most stable URL, but personally I would host my own copy and refer to that:

Neither of these are guaranteed.

Furthermore, changes could be made to these files at any moment (e.g. adding new attributes) which may conflict with your own custom @context file. Much better to copy the relevant sections instead and host them yourself.

jason-fox commented 3 years ago

The links(https://uri.fiware.org) referred within the context.jsonld are giving 404 error

According to the JSON-LD Spec :

a context is used to map terms to IRIs.

An IRI is not necessarily a URL - see here - it would be nice if the IRI resolved to a web page, but it is not essential.

Indeed, if you take the NGSI-LD Core @context

{
  "@context": {

    "ngsi-ld": "https://uri.etsi.org/ngsi-ld/",
    "geojson": "https://purl.org/geojson/vocab#",
    "id": "@id",
    "type": "@type",
...
    "@vocab": "https://uri.etsi.org/ngsi-ld/default-context/"
  }
}

You can see that any unresolved short-name for an attribute will be mapped onto the default context e.g.:

And that URL doesn't exist either.

dpatil-fw commented 3 years ago

Thank you for the clarification

albertoabellagarcia commented 3 years ago

The version we are pushing of more reliable of @context is http://smartdatamodels.org/context.jsonld