Giter Club home page Giter Club logo

rdf-vocabularies's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rdf-vocabularies's Issues

New Ontology request - GS1

Hi there.

hey I'm building a very comprehensive seo plugin for wordpress. And I absolutely love this git. So with that said. Ive' been researching new ontologies and specifically GS1 since they've been recognized by schema and W3. But they are not registered on http://dbpedia.org/sparql?nsdecl. But heres what I got for your reference.

https://www.gs1.org/standards/gs1-source/guideline/gs1-source-tsd-technical-implementation-guide-aggregators

https://www.gs1.org/edi-xml/technical-user-guide/Schema_hierarchy

https://www.gs1.se/en/our-standards/Technical-documentation/code-lists/
https://www.gs1.se/esap/20tradeitem/ver285/gu1.htm
https://www.gs1.se/esap/20tradeitem/ver285/gu5.htm
https://github.com/mobilemadman2/gs1

Overlapping prefixes

Overlapping prefixes are not handled as expected (original issue zazuko/SPEX#20).

The following test doesn't pass:

it('handles overlapping prefixes', () => {
  prefixes['foo'] = 'http://example.com/foo/'
  prefixes['bar'] = 'http://example.com/foo/bar/'

  expect(shrink('http://example.com/foo/test')).toBe('foo:test')
  expect(shrink('http://example.com/foo/bar/test')).toBe('bar:test')
})

Note that it works if the prefixes are added in reverse order:

prefixes['bar'] = 'http://example.com/foo/bar/'
prefixes['foo'] = 'http://example.com/foo/'

Using the package in browser environment

I would like to be able to use this package's functionality in the browser. Currently the biggest obstacle is using node.js filesystem APIs (fs and path).

I propose to split the ontology code from the loading code so that it can be substituted with different code for the browser. I have two ideas:

  1. Simpler, to use fetch. The problem here is that the files have to be fetched from somewhere. Either raw.github URLs or manually added to the deployed app.
  2. Use dynamic imports, which forces some additional effort on the consumer to set up webpack or similar to handle

W3C Block

Apparently we get blocked fast by w3c.org while fetching the data. @vhf how fast/when does it happen? Maybe @iherman can help us out here.

Ivan, we fetch RDF vocabularies in an automated way every few months and add the latest RDF versions of it in this repository. That seems to be enough to get the IP blocked by W3C for a while.

Bug: buildPath returning incorrect path

ontology_debug

buildPath is returning node_modules/@zazuko/ontologies instead of the correct node_modules/@zazuko/rdf-vocabularies/ontologies.

Additionally, the vocabularies() function should properly throw an error if it reads files in the wrong location.

Thanks for this tool!

Issues in namespace list

Issues in current namespace list:

  • duv: NS should be http://www.w3.org/ns/duv# according to ontology but different in RDFa initial context, I guess it simply points to the HTML spec
  • dc & dcterms point to the same URI. We should settle on one
  • dbpedia points to resource and ontology, should be resource IMO

Request for new vocabularies

Namaste all. It is a request for few vocabularies. These are mainly used for implementing solid specifications. These all vocabs have prefix.cc registered prefixes, and ther namespace base iri de-references to their ontology files

prefix title description uri
cert The Cert Ontology 1.0 Ontology for Certificates https://www.w3.org/ns/auth/cert#
stat POSIX stat Describes terms for POSIX-like files and directory listings http://www.w3.org/ns/posix/stat#
solid Solid Terms The Solid Terms vocabulary defines terms referenced in Solid specifications. http://www.w3.org/ns/solid/terms#
oidc Solid OIDC The OpenID Connect vocabulary used by the Solid-OIDC authentication specification. http://www.w3.org/ns/solid/oidc#
pim Workspace Ontology This ontology is for use in describing Workspaces. http://www.w3.org/ns/pim/space#

Thanks again for your work

MIA prefixes

Those prefixes & namespaces are defined in RDFa initial context but are missing in action, or at least an RDF version of them is. Please comment if you find any of them.

  • ctag:
  • gml:
  • rev:
  • rif:
  • sf:
  • v:
  • xml:

New ontology: metadata4ing

Hi zazuko team - is it possible to include the metadata4ing ontology in your prefix lookup service? You can find details on the ontology here:

http://metadata4ing.org

Serializations in different formats are also available via that link.

Thanks and kind regards, Marc

SIOC

It looks like SIOC is skipped but I find it in ontologies?

Add prefix & namespace metadata to each file

Good idea via @semanticfire, we should add two more quads to each vocabulary dump to describe the prefix & namespace we use for it.

Bart proposed using vann but I can't seem to fetch an RDF version of it anymore, the links are dead.

Ivan is using the RDFa vocabulary for this, see for example here. So my proposal would be to add these two quads using the RDFa vocabulary.

Using expand requires raw-loader

When the @zazuko/rdf-vocabularies/expand module is imported in a web project, webpack will try to create chunks for all the vocabularies because the expandWithCheck is dynamically loaded and it pull the n-quad sources.

With raw-loader added the bundle sizes explode.

Probably the only way would be to separate the expand and expandWithCheck modules. What do you think @vhf?

DBpedia prefixes

I thought we might add prefixes for the non-vocabulary DBpedia namespaces:

{
  "dbr": "http://dbpedia.org/resource/",
  "yago": "http://dbpedia.org/class/yago/",
  "yago-res": "http://yago-knowledge.org/resource/"
}

Not too sure about the YAGO stuff though...

High-level Strategy for rdf-vocabularies

Requirements

  • Opinionated list of prefixes, and namespaces independently available.
  • Opinionated list of snapshotted ntriple dumps, and their definition how it was fetched on their (original) source.
  • Optional (added) metadata on the used meta-ontology and its used annotations (rdfs:label vs. schema:name). (RDFS/OWL etc.)

JS Requirements

  • Opinionated map of prefixes, and namespaces independently available.
  • Opinionated list of snapshotted transformed to RDF/JS quads.
  • Defined package structure / define ontologies in a NPM package.

Implementation

  • Ontology package -> annotation (prefix, how to get it) -> tiny (<5kb) (as Turtle) [authorative source]

    • updates JS prefix map (transformation)
    • publishes a NPM package with the JS prefix maps
  • Snapshots package -> uses the Ontology package

    • fetches (on the web) the snapshotted ntriple dumps (gzipped)
    • publishes a NPM package with the RDF-JS quads versions (only)
      • define an interface that covers the quads and metadata for external people to create compatible ontology packages

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.