Changes between Version 7 and Version 8 of TextMiningDayThree

Show
Ignore:
Timestamp:
2010/02/11 19:00:15 (14 years ago)
Author:
alabarga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TextMiningDayThree

    v7 v8  
    2222 
    2323Here is some code: http://scientifik.info/biohack/code/ 
     24 
     25== Building RDF (Uniprot style) == 
     26 
     27{{{ 
     28 
     29(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     30 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#object'),  
     31 rdflib.URIRef('http://purl.uniprot.org/citations/4030726')) 
     32 
     33(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     34 rdflib.URIRef('http://purl.uniprot.org/core/scope'),  
     35 rdflib.Literal(u'PROTEIN SEQUENCE')) 
     36 
     37(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     38 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),  
     39 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement')) 
     40 
     41(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     42 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),  
     43 rdflib.URIRef('http://purl.uniprot.org/core/Citation_Statement')) 
     44 
     45(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     46 rdflib.URIRef('http://purl.uniprot.org/core/context'),  
     47 rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_2')) 
     48 
     49(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     50 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject'),  
     51 rdflib.URIRef('http://purl.uniprot.org/uniprot/P12345')) 
     52 
     53(rdflib.URIRef('http://www.uniprot.org/uniprot/P12345.rdf#_1'),  
     54 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate'),  
     55 rdflib.URIRef('http://purl.uniprot.org/core/citation')) 
     56 
     57(rdflib.URIRef('http://purl.uniprot.org/citations/4030726'),  
     58 rdflib.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),  
     59 rdflib.URIRef('http://purl.uniprot.org/core/Journal_Citation')) 
     60 
     61(rdflib.URIRef('http://purl.uniprot.org/citations/4030726'),  
     62 rdflib.URIRef('http://www.w3.org/2004/02/skos/core#exactMatch'),  
     63 rdflib.URIRef('http://purl.uniprot.org/pubmed/4030726')) 
     64 
     65(rdflib.URIRef('http://purl.uniprot.org/citations/4030726'),  
     66 rdflib.URIRef('http://www.w3.org/2004/02/skos/core#exactMatch'),  
     67 rdflib.URIRef('http://purl.uniprot.org/medline/85289123')) 
     68 
     69}}}