Reactome RDF

19 views
Skip to first unread message

Alan Ruttenberg

unread,
Mar 15, 2008, 4:46:10 PM3/15/08
to biopa...@googlegroups.com
Available at http://sw.neurocommons.org:8894/sparql 

I'll install it the neurocommons once we've caught any further errors. This is the basic info, for reference.

Couple of queries to get you going:

Default-graph: http://purl.org/commons/record/reactome/ (should have named it better)

SELECT distinct ?class WHERE {?s rdf:type ?class}

SELECT distinct ?item WHERE {?item rdf:type re:DataModel}

SELECT distinct ?label WHERE {?item rdf:type re:RegulationType. ?item rdfs:label ?label}

SELECT distinct ?p WHERE {?s ?p ?o}

SELECT ?ontology  WHERE {?s re:ontology ?ontology}   # unicode encoded version of the ontology as rendered in GKB


Loading it in to virtuoso:

DB.DBA.TTLP_MT(file_to_string_output('/work/reactome/reactome.nt'),'http://purl.org/commons/record/reactome/' ,'http://purl.org/commons/record/reactome/',0);

Creating the rdf using d2rq:


(note the N3 output, while prettier, exercises a bug in d2rq)

Attached: reactomemapping.pl (scripts a rewrite of the default d2rq mapping)
reactomemapping.n3(the output of the script, used as input to d2rq)


reactomemapping.pl
reactomemapping.n3

Alan Ruttenberg

unread,
Mar 15, 2008, 5:02:11 PM3/15/08
to biopa...@googlegroups.com, Andrea Splendiani
Forgot to mention - wouldn't have happened were not for Andrea's help - Thanks!

-Alan

<reactomemapping.n3>

Alan Ruttenberg

unread,
Mar 16, 2008, 3:43:38 AM3/16/08
to biopa...@googlegroups.com
Couple of minor corrections to the d2rq mapping - will regenerate and reload the endpoint probably tomorrow.
I've also generated an OWL specification of the database record structure based on the protege frames description that was embedded in the query result for SELECT ?ontology  WHERE {?s re:ontology ?ontology}


The mappings and code are in the same directory.

Let me know if (when:) you find any mistakes.

With this in place, we should now be able to start doing sanity checks and conversions to a more oboish representation.

-Alan

On Mar 15, 2008, at 4:46 PM, Alan Ruttenberg wrote:

<reactomemapping.n3>

Alan Ruttenberg

unread,
Mar 16, 2008, 4:39:07 AM3/16/08
to biopa...@googlegroups.com
On Mar 16, 2008, at 3:43 AM, Alan Ruttenberg wrote:

> will regenerate and reload the endpoint probably tomorrow

Ah yes, no time like the present. Also loaded the owl file.

Note: Default graph name is now: http://purl.org/science/graph/
reactome-records

Here's one that gives a bit of documentation on some of the reactome
record classes

prefix owl: <http://www.w3.org/2002/07/owl#>

SELECT distinct ?class ?comment WHERE {?s rdf:type owl:Class. ?class
rdfs:comment ?comment}

http://tinyurl.com/3cr66p will get you the results in XML

-Alan

Reply all
Reply to author
Forward
0 new messages