geneontology / noctua-models

This is the data repository for the models created and edited with the Noctua tool stack for GO.
http://noctua.geneontology.org/
Creative Commons Attribution 4.0 International
10 stars 3 forks source link

Test models #125

Closed lpalbou closed 5 years ago

lpalbou commented 5 years ago

@kltm can you check if the ttl files are ok ? I used a small scripts to download the models from their URLs, hence it includes the prefixes which I am not sure we want here

Just for future reference in case someone wants to do that from URL requests (@tmushayahama ):

var fs = require('fs');
const axios = require('axios')

async function getURL(url) {
    return await axios.get(url);
}

fs.readFile('list', 'utf8', async function(err, contents) {

    var urls = contents.split("\n");
    for(var url of urls) {

        id = url.substring(url.lastIndexOf("/") + 1).trim();
        if(id.startsWith("gomodel:")) {
            id = id.substring(8);
        }

        url = url + "/owl"
        console.log(id, url);

        const response = await getURL(url);
        fs.writeFile("output/" + id + ".ttl", response.data, (err) => {  
            if (err) console.log(err)
        });           

    }

});
vanaukenk commented 5 years ago

Thanks, @lpalbou Once the .ttl files are generated, what is the SOP for adding them to the noctua-models "dev" branch?

kltm commented 5 years ago

@lpalbou Looks good to me, but one way to find out...

kltm commented 5 years ago

@lpalbou It might be good to get the script into go-site or noctua scripts/.