libraryOntology:date ?submission_date.
?liburn libraryOntology:cell_line ?cell ;
libraryOntology:replicate ?replicate ;
- libraryOntology:species ?species .
+ libraryOntology:species_name ?species .
OPTIONAL { ?liburn libraryOntology:treatement ?treatment . }
FILTER(regex(?species, "Homo sapiens", "i"))
#filter(?submission_date > "2011-04-01T00:00:00Z"^^xsd:dateTime)
body = """prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix libns: <http://jumpgate.caltech.edu/wiki/LibraryOntology#>
- select ?library ?library_id ?name ?species
+ select ?library ?library_id ?name ?species_name
where {
?library a libns:Library .
OPTIONAL { ?library libns:library_id ?library_id . }
- OPTIONAL { ?library libns:species ?species . }
+ OPTIONAL { ?library libns:species_name ?species_name . }
OPTIONAL { ?library libns:name ?name . }
}"""
- bindings = set(['library', 'library_id', 'name', 'species'])
+ bindings = set(['library', 'library_id', 'name', 'species_name'])
query = RDF.SPARQLQuery(body)
count = 0
for r in query.execute(model):
self.check_literal_object(model, ['400'], p=libNS['gel_cut'])
self.check_literal_object(model, ['Igor'], p=libNS['made_by'])
self.check_literal_object(model, ['Paired End Multiplexed Sp-BAC'], p=libNS['name'])
- self.check_literal_object(model, ['Drosophila melanogaster'], p=libNS['species'])
+ self.check_literal_object(model, ['Drosophila melanogaster'], p=libNS['species_name'])
self.check_uri_object(model,
[u'http://localhost/lane/1193'],
<div class="library_sample_detail">
<h2>Sample Details</h2>
<b>Species</b>:
- <span property="libns:species" content="{{lib.library_species.scientific_name}}"><a href="{{lib.library_species.get_absolute_url}}">{{ lib.library_species.scientific_name }}</a></span>
+ <span property="libns:species_name" content="{{lib.library_species.scientific_name}}"><a href="{{lib.library_species.get_absolute_url}}">{{ lib.library_species.scientific_name }}</a></span>
<br/>
<b>Experiment Type</b>:
<span property="libns:experiment_type">{{ lib.experiment_type }}</span>
{% if lib.lane_set.all %}
<tbody>
{% for lane in lib.lane_set.all %}
- <tr rel="libns:has_lane" resource="{{lane.get_absolute_url}}">
+ <tr rel="libns:has_lane"
+ about="{{lib.get_absolute_url}}"
+ resource="{{lane.get_absolute_url}}">
<td>
<a typeof="libns:IlluminaFlowcell" href="{{lane.flowcell.get_absolute_url}}">
<span property="libns:flowcell_id"
<td typeof="libns:IlluminaLane" about="{{lane.get_absolute_url}}">
<span rel="libns:flowcell" resource="{{lane.flowcell.get_absolute_url}}"></span>
<a href="{{lane.get_absolute_url}}">
- <span property="libns:lane_number" datatype="xsd:decimal"
+ <span property="libns:lane_number"
>{{ lane.lane_number }}</span>
</a></td>
<td>{{ lane.comment }}</td>
<div id="genome_detail">
<h2>About this Genome</h2>
<b>Common Name</b>:
- <span property="libns:species">{{ species.common_name}}</span><br/>
+ <span property="libns:species_name">{{ species.common_name}}</span><br/>
<b>Scientific Name</b>:
- <span property="libns:species">{{ species.scientific_name}}</span><br/>
+ <span property="libns:species_name">{{ species.scientific_name}}</span><br/>
</div>
{% endblock %}
libns:made_by "Gary Gygax"@en ;
libns:name "Paired Ends ASDF"@en ;
libns:replicate "1"@en;
- libns:species "Mus musculus"@en ;
+ libns:species_name "Mus musculus"@en ;
libns:stopping_point "Completed"@en ;
libns:total_unique_locations 8841201 .
# cell_line
-
<http://localhost/library/12345/>
a libns:Library ;
libns:affiliation "TSR"@en;
libns:made_by "Gary Gygax"@en ;
libns:name "Paired Ends THING"@en ;
libns:replicate "1"@en;
- libns:species "Mus musculus"@en ;
+ libns:species_name "Mus musculus"@en ;
libns:stopping_point "Completed"@en ;
libns:total_unique_locations 8841201 .
# cell_line
rdfs:comment "The estimated fragment sizes cut from gel";
rdfs:label "Gel Cut" ;
rdfs:domain htswlib:Library ;
- rdfs:range xsd:decimal .
+ rdfs:range xsd:integer .
htswlib:made_by
a rdf:Property ;
htswlib:species
a rdf:Property ;
- rdfs:comment "Scientific name of sample species" ;
+ rdfs:comment "A species class" ;
rdfs:label "Species" ;
rdfs:domain htswlib:Library ;
#rdfs:domain htswlib:IlluminaLane;
rdfs:range htswlib:Species .
+htswlib:species_name
+ a rdf:Property ;
+ rdfs:comment "Scientific name of sample species" ;
+ rdfs:label "Species name";
+ rdfs:domain htswlib:Species, htswlib:Library ;
+ rdfs:range xsd:string .
+
htswlib:replicate
a rdf:Property ;
rdfs:comment "Which replicate this was" ;
serving as a stylesheet for a resource. """^^xsd:string ;
rdfs:member <http://www.w3.org/1999/xhtml/vocab#relrev-properties> ;
# rdfa:term "stylesheet" ;
-# rdfa:uri "http://www.w3.org/1999/xhtml/vocab#stylesheet"
+# rdfa:uri "http://www.w3.org/1999/xhtml/vocab#stylesheet" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:range rdfs:Resource
.