You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on May 20, 2019. It is now read-only.
update here: catgetclone and install are documented (draft) and working for the registry. doc/*.md explains the difference between those commands (a good reading order is 0 clone, 1 cat, 2 get, 3 install).
@rgrp I am still trying to figure out how to do clone knowing only the content of datapackage.json (i.e how to know all the files associated with a data package (scripts...) but not listed as resources).
If you look at https://github.com/component/component/wiki/Spec you have
Component developers MUST explicitly state the relevant file(s) via scripts, styles and others.
Maybe we should force that (listing all the files) in the spec. There is the files property of package.json (for npm) but it allows directories.
Of course all of this is trivial if we only support github URLs but I would like a more generic solution here.
EDIT: to be clear, here I am talking about files not listed in datapackage.resources
if the datapackage.json defines a baseURI property (note: not sure if this is in the datapackage spec or not, i'm open to other names e.g. url, external or something) then it would look for the above list using baseURI as the base URI
@sballesteros I think we're putting too much obligations on dpm. We could be assuming that whomever publishes takes care of pushing scripts or they use e.g. git (so you git clone then get data urls if they aren't in the git repo). I think we want to do the simplest thing we can at the start that gets us working and if we miss out scripts we live with it (note: couldn't we reuse the scripts tag from commonjs for some of this?)
@maxogden I wonder if allowing for default behaviour like this is making a rod for our backs down the line. Why not oblige data package creators to list resources if they exist ... (its not that hard to add one entry ...)
@rgrp what negatives do you see? one is that if publishers arent required to provide a file manifest that they could publish a package that accidentally doesn't include any data. This is easy to fix though -- we have a pre-publish step that throws if no default data file can be found.
Activity
rufuspollock commentedon Dec 28, 2013
@sballesteros merged notes from chat other day here
sballesteros commentedon Jan 1, 2014
update here:
catgetcloneandinstallare documented (draft) and working for the registry. doc/*.md explains the difference between those commands (a good reading order is 0 clone, 1 cat, 2 get, 3 install).rufuspollock commentedon Jan 2, 2014
@sballesteros is install from url working? I'd love to use that!
sballesteros commentedon Jan 2, 2014
@rgrp I am still trying to figure out how to do
cloneknowing only the content of datapackage.json (i.e how to know all the files associated with a data package (scripts...) but not listed asresources).If you look at https://github.com/component/component/wiki/Spec you have
Maybe we should force that (listing all the files) in the spec. There is the files property of package.json (for npm) but it allows directories.
Of course all of this is trivial if we only support github URLs but I would like a more generic solution here.
EDIT: to be clear, here I am talking about files not listed in
datapackage.resourcesmax-mapper commentedon Jan 2, 2014
IMO the default should be to clone entire paths/repos/folder unless there is a specific manifest defined
max-mapper commentedon Jan 2, 2014
so if you have a really bare
datapackage.json:and it is served from
data.com/mydatapackagee.g. it doesn't define any resources, and also has no json-ld context, how about we look for these default files, in order, until we find one:
archives:
(more common/sensible defaults welcome)
if the
datapackage.jsondefines abaseURIproperty (note: not sure if this is in the datapackage spec or not, i'm open to other names e.g.url,externalor something) then it would look for the above list usingbaseURIas the base URIrufuspollock commentedon Jan 3, 2014
@sballesteros I think we're putting too much obligations on dpm. We could be assuming that whomever publishes takes care of pushing scripts or they use e.g. git (so you git clone then get data urls if they aren't in the git repo). I think we want to do the simplest thing we can at the start that gets us working and if we miss out scripts we live with it (note: couldn't we reuse the scripts tag from commonjs for some of this?)
sballesteros commentedon Jan 4, 2014
@rgrp I agree. Currently refactoring a lot of stuff.
rufuspollock commentedon Jan 18, 2014
@maxogden I wonder if allowing for default behaviour like this is making a rod for our backs down the line. Why not oblige data package creators to list resources if they exist ... (its not that hard to add one entry ...)
max-mapper commentedon Jan 18, 2014
@rgrp what negatives do you see? one is that if publishers arent required to provide a file manifest that they could publish a package that accidentally doesn't include any data. This is easy to fix though -- we have a pre-publish step that throws if no default data file can be found.
rufuspollock commentedon Jan 20, 2014
@maxogden the downsides I see (in addition to the one you mention) are:
resourcesattribute so we get the schema stuff etc ...That said I do see plus here of making it even easier and faster to publish - a major concern at this early stage :-)
So I'm probably a -0.5 at this point but do see the benefits ...
[#3,install][s]: support for installing from github urls.
rufuspollock commentedon May 18, 2014
Here's a gif showing off the new feature: