hydroshare / hydroshare_drupal

Hydroshare is an online collaboration environment for sharing data, models, and code related to hydrology and water sciences
beta.hydroshare.org
GNU General Public License v2.0
7 stars 2 forks source link

Need Service endpoint for retrieving resource types #17

Open sduncan4 opened 10 years ago

sduncan4 commented 10 years ago

We need a list of resource types that we can access through the web service.

jeffersonheard commented 10 years ago

What is a "retrieved resource type?" Are we talking about retrieving the list of content types in Hydroshare? What items in the list would make it useful? Just the name of the content type "e.g. Geoanalytics or Timeseries" might not be very useful because code cannot adapt to that and address it.

cfrisby commented 10 years ago

For our download tool we are developing, we need a list of the content types available on HydroShare. Currently, we are cycling through all of the available resources and extracting the "type" field for each resource. This works fine for now, but as the number of resources on HydroShare grows, it will become less efficient. Therefore we were hoping that a web service could be used to simpy return a list of the content types that are on HydroShare directly.

On Tue, Nov 5, 2013 at 10:03 AM, Jeff Heard notifications@github.comwrote:

What is a "retrieved resource type?" Are we talking about retrieving the list of content types in Hydroshare? What items in the list would make it useful? Just the name of the content type "e.g. Geoanalytics or Timeseries" might not be very useful because code cannot adapt to that and address it.

— Reply to this email directly or view it on GitHubhttps://github.com/hydroshare/hydroshare/issues/17#issuecomment-27791403 .

jeffersonheard commented 10 years ago

http://dev.hydroshare.org/contenttypes.php

dtarb commented 10 years ago

We need to at some point align this list with the list of resource types that we intend to support in HydroShare. Currently this is: Time series Geographic feature set Other Referenced HIS time series Geographic raster Multidimensional space time dataset River geometry Sample based observations (ODM2 and CZO) Documents Tabular objects HydroDesktop Project package Scripts Models Model component Referenced data sets from other (non HIS) sources.

This will likely grow as we refine the design and flesh out the details of a resource data model representation for each.

The current list has entries like "lauratest" which are OK for testing, but not for the long term.

jeffersonheard commented 10 years ago

These are literal content types in Drupal, and have to be for the feature they're asking for to work properly. If those content types exist in Hydroshare/Drupal then they will show up, otherwise they won't. As for "lauratest", that's a content type in the dev site. It wouldn't exist in the production site.

danames commented 10 years ago

Excellent work. Thanks Jeff! We'll test it immediately and if it works, we'll close this issue.

dtarb commented 10 years ago

OK - so what is the difference between a literal content type and a Resource type as a user would see it.