Giter Club home page Giter Club logo

Comments (5)

VladimirAlexiev avatar VladimirAlexiev commented on September 2, 2024

You should also consider publishing using established ontologies. Eg with schemaorg, this could look like:

@prefix uncefact: <https://service.unece.org/trade/uncefact/>.
@prefix unlocode: <https://service.unece.org/trade/uncefact/vocabulary/unlocode/>.
@prefix schema: <http://schema.org/>.

unlocode:CHGVA a schema:State;
  schema:name "Geneve";
  uncefact:locode "CHGVA";
  schema:containedInPlace unlocode:CH;
  schema:sameAs <https://sws.geonames.org/2660645/>.

uncefact:locode rdfs:subPropertyOf schema:identifier.

(All LOCODEs are ADM1 administrative divisions, right?

from spec-jsonld.

onthebreeze avatar onthebreeze commented on September 2, 2024

Well there's an interesting question here. UNECE is the authority for locodes but they are published as csv / pdf etc not as a json-ld vocabulary.

Our project has taken a simple mapping approach for all codes - of which locked us only one. But it loses rich semantics when the code list is a richer data set than simple name-value pairs (like locode which has port type etc)

Looks like locode.info has done a nice job - but is it authoritative? I suspect that, as an official UNCEFACT project, we should define a better vocabulary publishing model for locodes (pathos's inspired by locode.info) and basically do a proper job of it

from spec-jsonld.

nissimsan avatar nissimsan commented on September 2, 2024

@onthebreeze, or we could make a statement which points at locode.info and pull it from vocab on the UN server. I certainly have little appetite to reinvent the wheel and repeat what has been done already. Plus, if locode.info is already in use, it's arguably an anti-pattern to introduce a new one. @VladimirAlexiev I'd love your input on these considerations?

from spec-jsonld.

VladimirAlexiev avatar VladimirAlexiev commented on September 2, 2024

I don't know where locode.info came from, or who uses them.
If you have authoritative LOCODE info, it's better to use it: I hope it won't be a lot of work to map it.

@onthebreeze would you care to make issue(s) for other codelists that can be enriched, i.e. all of their data published as JSONLD?

from spec-jsonld.

nissimsan avatar nissimsan commented on September 2, 2024

I added a note about this in the NDR spec. I think that's as far as we should go; it's really not a recommendation as long as we have no idea of how it is maintained - if at all.

from spec-jsonld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.