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

How to call quepy.install("") for multiple modules / languages? #48

Open
tim5go opened this issue Jun 5, 2017 · 0 comments
Open

How to call quepy.install("") for multiple modules / languages? #48

tim5go opened this issue Jun 5, 2017 · 0 comments

Comments

@tim5go
Copy link

tim5go commented Jun 5, 2017

I am trying to create my own RDF module based on dbpedia in Chinese.

In my dsl.py, we created something like:

HasKeyword.relation = "rdfs:label"
HasKeyword.language = "zh"

However, when I created two RDF modules simultaneously in the constructor of main class:

self.dbpedia = quepy.install("dbpedia")
self.zhwiki = quepy.install("zhwiki") # Chinese version of dbpedia

I found that the latter module that I created will always override the first one.

In particular, the dsl.py for dbpedia look likes:

HasKeyword.language = "en"

And the variable "HasKeyword.language" will be overrided as "zh"

Is there any good way to resolve it?

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

1 participant