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 should getDatasetProps($dataset_uri) properties be set? #24

Open
randykerber opened this issue Jun 14, 2017 · 1 comment
Open

How should getDatasetProps($dataset_uri) properties be set? #24

randykerber opened this issue Jun 14, 2017 · 1 comment

Comments

@randykerber
Copy link
Member

Anyone know how these properties should be set?

It's at end of ./views/tsv.php

function getDatasetProps($dataset_uri) {
        $dataset_names = array (
                'http://linkedlifedata.com/resource/drugbank' => 'DrugBank',
                'http://ops.rsc-us.org' => 'OCRS',
                'http://purl.uniprot.org' => 'Uniprot',
                'http://purl.uniprot.org/enzyme' => 'EnzymeClassification',
                'http://www.conceptwiki.org' => 'ConceptWiki',
                'http://www.ebi.ac.uk/chebi' => 'ChEBI',
                'http://www.ebi.ac.uk/chembl' => 'ChEMBL',
                'http://www.geneontology.org' => 'GeneOntology',
                'http://www.openphacts.org/goa' => 'GOA',
                'http://www.wikipathways.org' => 'WikiPathways',
        );
        if (isset($dataset_names[$dataset_uri])){
                return $dataset_names[$dataset_uri];
        }
        return false;
}
@danidi
Copy link

danidi commented Jun 15, 2017

This looks like the definitions for the provenance information in the header of the tsv output format of the API, e.g. https://beta.openphacts.org/2.1/compound?uri=http%3A%2F%2Fwww.conceptwiki.org%2Fconcept%2F38932552-111f-4a4e-a46a-4ed1d7bdf9d5&app_id=f91c5b2b&app_key=18a5d823d0e4933ac5fe22a3d52974c1&_format=tsv.
However, the given example is wrong in some of the columns (DrugBank and OCRS are actually incorrectly attributed with ConceptWiki). Maybe because the wrong URI is set here? Looks like http://www.openphacts.org/bio2rdf/drugbank would be the URI for DrugBank, and http://ops.rsc.org would be the one for OCRS. http://aers.data2semantics.org/ is also not defined yet, should be AERS.

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

2 participants