Comments (11)
Very odd. The species Wijkia extenuata is one from your example. In the output of specieslist()
and indeed the output of species_info()
or taxinfo_download()
it has no kingdom:
> species_info(guid="e851274b-d043-4cef-ba01-2a7eb5abc80f")$classification$kingdom
NULL
> taxinfo_download("e851274b-d043-4cef-ba01-2a7eb5abc80f")$kingdom
[1] NA
But its page on the ALA web site (http://bie.ala.org.au/species/e851274b-d043-4cef-ba01-2a7eb5abc80f#classification) puts it in the kingdom Plantae. So I presume that it is being included in the returned result set because some part of the server database thinks it's in Plantae, but it comes back with empty kingdom because another part doesn't. I'll check in with the ALA devs.
from ala4r.
Thank you once again for a prompt response.
I've been using the ALA's web services off and on for several years and still I have no precise understanding of what is happening under the hood. I've more or less accepted that this will remain one of life's mysteries. At least your package makes it much simpler :)
from ala4r.
I'll pass this onto Doug, who is working with the names processing. I have a feeling the Kingdom is being inferred by the fact that the source is "AusMoss". The species page is calling a separate webservice to build the taxonomy, so the smarts is probably coming from that service. It looks like a bug that it is not being correctly placed in our taxonomy using the normal species service.
from ala4r.
@raymondben can you lookup the actual webservice the plugin is calling for the ALA4R::specieslist
command, please? I have a feeling the fq=kingdom:Plantae
might be deprecated depending on which service its hitting... Its worth trying this instead: fq=rk_kingdom:Plantae
- species names fields changed a bit last year - full list of fields is available at http://biocache.ala.org.au/ws/index/fields. EDIT - looks like its hitting biocache.ala.org.au not bie.ala.org.au as I thought. In which case fq
looks OK.
from ala4r.
It's using http://api.ala.org.au/#ws106 (http://biocache.ala.org.au/ws/occurrences/facets/download?...)
from ala4r.
The issue of blank kingdom appearing the species list CSV output is due to the missing kingdom data in the BIE (that Ben noted) but the fact that some occurrence records provide kingdom
in their original darwin core data. Thus the fq=kingdom:Plante
returns records but then the subsequent lookup against the BIE for each unique species in the occurrence facet results, provides an empty "kingdom" column. Should be fixed with better smarts for populating higher taxa in the BIE, which is an ongoing "improvement" we're working on.
from ala4r.
Thanks @nickdos for tracking it down. Looks like we can safely assume that any returned record does satisfy the fq
filter (if one has been given)? Until those BIE improvements are done, I don't think it's possible to build a general workaround at the R end, but users can repopulate missing fields themselves if needed. I'll make a note in the function help.
from ala4r.
@nickdos what does the q
parameter actually get matched against with that service? The API docs say "Query of the form field:value e.g. q=genus:Macropus or a free text search e.g. q=Macropus" but I think the free-text part of that is no longer correct. Previously this worked:
http://biocache.ala.org.au/ws/occurrences/facets/download?q=Macropus&facets=taxon_concept_lsid&lookup=true&count=true
but now gives no matches. A "genus:Macropus" style query still works:
http://biocache.ala.org.au/ws/occurrences/facets/download?q=genus%3AMacropus&facets=taxon_concept_lsid&lookup=true&count=true
Has something changed or have I misunderstood the usage?
from ala4r.
@raymondben just yesterday we discovered that biocache searches are not working without a field specified - this is a bug that slipped into the last full re-index. We use SOLR and it allows you to set a default field, which is "text", so q=Macropus
is effectively q=text:Macropus
.
from ala4r.
The original problem here (empty taxonomic fields) is an issue with the underlying ALA service, and is being addressed in AtlasOfLivingAustralia/bie-index#134. Closing this one.
from ala4r.
Thanks guys for chasing this up, much appreciated.
from ala4r.
Related Issues (20)
- Make package skeleton HOT 1
- Change Macropus genus in example HOT 1
- Google analytics
- Document API dependencies HOT 2
- Case study - Latitudonal gradient analysis HOT 1
- Case study - area report HOT 1
- Case study - text mining Darwin Core terms HOT 1
- Develop ALA4R training materials
- sites_by_species can fail on valid WKT
- ala_list() test failing HOT 1
- ALA4R Travis build failing
- problem accessing records using occurrences() HOT 6
- Sites by species failing while waiting for task to complete
- Make use of new image web service
- Generate DOIs for downloads HOT 1
- Publish to CRAN - v 1.8.0 HOT 1
- Retrieve data resource information
- Implement facet search
- Include data quality filters in ala_occurrences
- Progress bar for downloads, or an initial count on how many records to expect HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ala4r.