-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to import OpenMath ontologies #3
Comments
The ontologies are currently not hosted as web resources. As Github pages does not support redirects and the definition of MIME types for arbitrary files it is also not possible to host the files directly from there. Currently, the best option is to simply download the files and import them locally. |
BTW, I am currently working on something like:
This allows to directly use POPCORN-LD instead of serializing all expressions in OpenMath-RDF. |
Thank you for your quick response. Have you considered using W3ID? It's free, supports content negotitation and you can do versioning using Github. All you need to do is create a .htaccess file with some redirect commands. Here is an example of such a file that we created in order to publish one of our ontologies: https://github.com/hsu-aut/w3id.org/blob/master/hsu-aut/VDI3682/.htaccess The ontology IRI for this example is |
@kenwenzel says mime types listed at mime-db should work, and https://github.com/jshttp/mime-db/search?q=turtle seems to imply text/turtle is there so it's not impossible but I can't trace this until later |
@davidcarlisle Thank you for investigating this. Now the open challenge is that we can't redirect @aljoshakoecher Thank you for bringing up W3ID. It could be a good solution - but we have to rename the ontologies to something like |
@kenwenzel I just had a quick look at the om-rdf repo it publishes gh-pages branch to http://openmath.org/om-rdf/ but the only
so these are not currently on openmath.org at all, unless I missed something? (we could, I guess, switch to making gh-pages from main?) |
Yeah, kind of. You don't technically have to, you could just leave the ontology URIs and just use the W3ID URLs for importing. But if you want to be able to directly dereference the ontology URIs and import the ontologies by their URI, then you have to change them... |
@davidcarlisle Yes, you are right. I thought about directly moving the ontologies into the https://github.com/OpenMath/OpenMath.github.io repo. |
I don't mind: I'm not really in the loop these days, just have historical oversight over the repos... But I'd probably go for publishing from main so that |
@aljoshakoecher What W3ID addresses would you propose for the OpenMath-RDF ontology (math.ttl) and the CD ontology (meta.ttl)? The URIs |
Well first I have to agree with @davidcarlisle. If you have a domain and can use a corresponding URL, I think it's better to use that instead of the more generic W3ID solution. If you want to use W3ID, I think both URIs you suggested are fine. |
Any updates on this 🙂 ? |
@davidcarlisle Everything in openmath.org is directly served via GitHub Pages, right? That means we can't control redirections and we have to rely on W3ID if we don't want to include the full file names in the namespaces of the ontologies. Am I allowed to use http://www.w3id.org/openmath/ as a namespace and/or do we need some kind of approval process to do this? |
yes
for web pages you can use a so for example https://openmath.org/cd/arith1.xhtml redirects to https://openmath.org/cd/arith1 which is https://openmath.org/cd/arith1.html so for URI like namespaces that are not used for transport other than for documentation that would be OK but probably(?) some rdf API want to access the URI directly and not see a html client-side redirect?
No objection from me but perhaps you should ask on a mailing list as I'm not sure if people are really monitoring github (even if listed as watchers) but let's try a ping @JamesHDavenport @kohlhase |
Hi! First of all, thank you for your OpenMath ontologies! I'm interested in using them but I couldn't find a proper way to import them. Am I missing something?
http://openmath.org/vocab/math
don't seem to resolve.http://numerateweb.org/vocab/math
orhttp://www.openmath.org/cd/arith1
What is your proposed way of importing your ontologies?
The text was updated successfully, but these errors were encountered: