Add a rdf type for ucsc track records
authorDiane Trout <diane@caltech.edu>
Fri, 23 Mar 2012 23:51:52 +0000 (16:51 -0700)
committerDiane Trout <diane@caltech.edu>
Fri, 23 Mar 2012 23:51:52 +0000 (16:51 -0700)
It makes it a bit easier to extract just that type of
information.

encode_submission/encode_find.py

index eebc3bcc481c5597c121f5a461da4199249e6811..24ed16872cf7654d25cd40f5b0ad977976512e52 100644 (file)
@@ -537,6 +537,8 @@ def load_encodedcc_files(model, genome, composite):
 
     for filename, attributes in file_index.items():
         s = RDF.Node(RDF.Uri(filename))
+        model.add_statement(
+            RDF.Statement(s, TYPE_N, submissionOntology['ucsc_track']))
         for name, value in attributes.items():
             p = RDF.Node(DCC_NS[name])
             o = RDF.Node(value)