Skip to content
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

Should more namespaces be added to sophia_api::ns? #87

Closed
lulu-berlin opened this issue Aug 16, 2020 · 5 comments
Closed

Should more namespaces be added to sophia_api::ns? #87

lulu-berlin opened this issue Aug 16, 2020 · 5 comments

Comments

@lulu-berlin
Copy link
Contributor

I would like to use sophia for building a multilingual dictionary, for which I need http://www.w3.org/ns/lemon/ontolex# and some other associated modules.

I'm wondering whether it would make sense to contribute these namespaces to sophia_api::ns, or are you satisfied with the existing ones as "the most common namespaces"?

@MattesWhite
Copy link
Contributor

I'm not the owner of sophia but as a common API for RDF in Rust (#23) sophia should really only include "the most common namespaces", in my opinion.

However, for exactly this reason the namespace! macro is public. You can just create your own ontology crate all you need to do is having sophia_api as dependency and do something like:

#[macro_use]
extern crate sophia_api;

pub mod lemon {
    namespace!(
        "http://www.w3.org/ns/lemon/ontolex#",
        // I don't know the actual vocabulary        
        Lemon,
        Grenade,
        Orange,
        ...
    )
}

@pchampin
Copy link
Owner

@MattesWhite This is exactly what I was about to answer. :-)

@YEver unless you have a strong objection, I think we can close this issue?
On a different topic: I am also involved in semweb + linguistics projects, so I would be interested to learn more about your work ;)

@lulu-berlin
Copy link
Contributor Author

Thank you both :-)

I'll create my own crate for the namespaces I need, so I'm closing this issue.

@damooo
Copy link
Contributor

damooo commented Jan 27, 2022

@YEver , @pchampin , @MattesWhite
I published a crate rdf_vocabularies, (source: @ github). This crate is a distribution of few most commonly used RDF vocabularies. It also provides sophia terms for each vocabulary's terminology.

It also includes ontolex lemon, lime, vartrans, and lexvo, gold ontologies for semantic linguistics. It also provides their ontologies as sophia datasets behind corresponding feature flags. These vocabs are generated from their ontology distributions directly. feedback welcome.

@pchampin
Copy link
Owner

@damooo thanks, that looks very nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants