Open GoogleCodeExporter opened 9 years ago
escalated this to high priority. I need this for the bird species facet to
operate correctly. if this requires further discussion please let me know.
Thanks.
Original comment by apse...@gmail.com
on 3 Feb 2013 at 6:54
I had updated the query for bird sites to use the graph for bird taxonomy, you
can see that "?species <http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://ebird#Anseriformes> . " requires transitivity :
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
CONSTRUCT {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://escience.rpi.edu/ontology/semanteco/2/0/bird.owl#BirdSite> .
?s <http://www.w3.org/2000/01/rdf-schema#label> ?label .
?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
?s <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
}
WHERE
{
graph <http://was.tw.rpi.edu/ebird-data-ca> {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://escience.rpi.edu/ontology/semanteco/2/0/bird.owl#BirdSite> .
?s <http://www.w3.org/2000/01/rdf-schema#label> ?label .
?measurement <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
?measurement <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/version/2012-Nov-4/pa
rams/enhancement/1/countyCoded> "075" .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/version/2012-Nov-4/pa
rams/enhancement/1/stateCoded> "CA" .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/vocab/enhancement/1/l
ocality> ?s .
}
graph <http://was.tw.rpi.edu/ebird-taxonomy> {
?species <http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://ebird#Anseriformes> .
?species <http://www.w3.org/2000/01/rdf-schema#label> ?scientific_name .
}
}
Original comment by apse...@gmail.com
on 3 Feb 2013 at 6:57
sorry that was not the correct query, the link between measurement and species
is not given and is addressed in .
Note that until we have a solution for handling transitivity of subClassOf, it
will strictly work with direct subclass restriction of the query. In the
example below I selected "Duck, Geese, or Waterfowl" under Anseriformes, which
corresponds to the scientific name "Anatidae" and it properly restricts.
http://localhost:8081/semanteco/#source%5B%5D=http%3A//sbcFish%23&source%5B%5D=h
ttp%3A//ebird%23&source%5B%5D=http%3A//sparql.tw.rpi.edu/source/epa-gov&source%5
B%5D=http%3A//sparql.tw.rpi.edu/source/usgs-gov&type%5B%5D=clean-air&type%5B%5D=
polluted-air&type%5B%5D=birds&type%5B%5D=fish&type%5B%5D=clean-water&type%5B%5D=
clean-facility&type%5B%5D=polluted-water&type%5B%5D=polluted-facility&domain%5B%
5D=http%3A//escience.rpi.edu/ontology/semanteco/2/0/bird.owl%23&industry=®ulati
on.air=http%3A//was.tw.rpi.edu/semanteco/regulations/EPA-air-regulation.owl®ula
tion.water=http%3A//escience.rpi.edu/ontology/semanteco/2/0/EPA-regulation.owl&t
ime=&queryeBirdTaxonomySubClasses=http%3A//ebird%23Anatidae&species%5B%5D=http%3
A//ebird%23Anatidae&zip=94107&state=CA&stateCode=06&county=075&lat=37.762147&lng
=-122.397099&limits%5Bsite%5D%5Boffset%5D=0&limits%5Bsite%5D%5Bcount%5D=64&limit
s%5Bsite%5D%5Blimit%5D=6&limits%5Bfacility%5D%5Boffset%5D=0&limits%5Bfacility%5D
%5Bcount%5D=4&limits%5Bfacility%5D%5Blimit%5D=4&uri=http%3A//was.tw.rpi.edu/sour
ce/bird-data/dataset/ebird-data/typed/locality/The_Embarcadero_near_Mission
CONSTRUCT {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://escience.rpi.edu/ontology/semanteco/2/0/bird.owl#BirdSite> .
?s <http://www.w3.org/2000/01/rdf-schema#label> ?label .
?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
?s <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
}
WHERE
{
graph <http://was.tw.rpi.edu/ebird-data-ca> {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://escience.rpi.edu/ontology/semanteco/2/0/bird.owl#BirdSite> .
?s <http://www.w3.org/2000/01/rdf-schema#label> ?label .
?measurement <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat .
?measurement <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/version/2012-Nov-4/pa
rams/enhancement/1/countyCoded> "075" .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/version/2012-Nov-4/pa
rams/enhancement/1/stateCoded> "CA" .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/vocab/enhancement/1/l
ocality> ?s .
?measurement
<http://was.tw.rpi.edu/source/bird-data/dataset/ebird-data/vocab/enhancement/1/s
cientific_name> ?scientific_name .
}
graph <http://was.tw.rpi.edu/ebird-taxonomy> {
?species <http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://ebird#Anatidae> .
?species <http://www.w3.org/2000/01/rdf-schema#label> ?scientific_name .
}
}
Original comment by apse...@gmail.com
on 3 Feb 2013 at 8:33
Original issue reported on code.google.com by
apse...@gmail.com
on 28 Nov 2012 at 7:20