iop-alliance / OpenKnowHow

A metadata specification to enable the collection of distributed, standardised metadata of open source hardware designs
GNU General Public License v3.0
1 stars 1 forks source link

okh:repo - Web-View or git (clone) URL? #94

Open hoijui opened 3 years ago

hoijui commented 3 years ago

This is a question I have come about a LOT of times in other places already. In practice, both makes sense, and while in the case of github.com and gitlab.com, it is possible to derive one from the other, that is not generally the case. So the question is, should we have both (one property each?), or should we stick to one of the two (git clone URL, which protocol to be preferred?)

example Web:

repo: "https://github.com/OPEN-NEXT/LOSH/"

This can be put into the browser to see the repo.

example clone:

repo: "https://github.com/OPEN-NEXT/LOSH.git"

This can be used as git clone https://github.com/OPEN-NEXT/LOSH.git.

... as said, these two are very similar in this case, and one can derive one from the other, but that might not always be the case, an done also needs to first detect which one it is, and then possibly generate the other form, depending on which one needs.

moedn commented 3 years ago

not quite sure, what the question is, but maybe @ahane has an opinion on that

hoijui commented 3 years ago

I extended the description above.

moedn commented 3 years ago

hmm, at the moment I'd leave things as they are:

or am I missing something?

hoijui commented 1 year ago

As I see it now, we should accept all the repos in the manifest, and then provide always the same (e.g. the web-view one) in the RDF, or even supply all the URLs:

hoijui commented 4 months ago

If we make our projects/Modules owl:subClassOf doap:Project, we can use doap:repository and doap:GitRepository (or other sub-classes of doap:Repository), which in turn have linked to them one or more forms of the URLs mentioned in this issue.

see doap