Skip to content

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

@tim5go

Description

@tim5go

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions