Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Make it easy to add custom annotations or namespaces. #67

Open
abargnesi opened this issue Mar 22, 2016 · 3 comments
Open

Make it easy to add custom annotations or namespaces. #67

abargnesi opened this issue Mar 22, 2016 · 3 comments

Comments

@abargnesi
Copy link
Member

While discussing the new workflow with OpenBEL Platform Juliane mentioned the importance of incorporating custom annotations and namespaces into the RDF resources dataset.

@ncatlett put together a tab-delimited format that would be perfect for this. See Adding new namespace datasets.

This work would be to make it easier to add custom datasets to a run of the resource-generator. Hopefully easier than editing python.

@ncatlett
Copy link
Member

Tony - as is, only two lines should need to be added to configuration.py in order to add a namespace to the RDF resources. The other steps are all related to supporting the old .belns/.beleq file generation.

The pipeline may need some minor modifications to make sure that Annotations will also work - in datasets.py, the StandardCustomData class needs to be modified to include Annotation datasets, and the encoding types need to be handled (ideally namespace encoding types will get fully merged with annotation concept types).

@abargnesi
Copy link
Member Author

Thanks for expanding on this. Wouldn't annotations datasets already be supported since they reuse the NamespaceDataSet class? Or is it that we have to add more functions to StandardCustomData to provide annotation data?

@ncatlett
Copy link
Member

The NamespaceDataSet class can have a scheme_type of "ns" and/or "anno".  The default for StandardCustomData should be "ns" and StandardCustomData does not have a working method to generate annotation concept types. The scheme_type is used in generation of the rdf for two purposes: (1) to indicate if a data set is a NamespaceConceptScheme or an AnnotationConceptScheme and (2) to direct if AnnotationConceptTypes and/or encoding concepts should be generated for each value.   

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

No branches or pull requests

2 participants