-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataPackage: Add "references" property in resource #58
Comments
@maesbri Have you already changed the url property for the map view? Because now I retrieve an array instead of a string when I query the dp_resource objects. |
Hmm, it has been changed but I think it was @patrickkaleta . However, this doesn't correspond to this issue and in any case, if I recall correctly, my indication was that the "path" property (within the resource object) is the one to be converted into an array (it is now). Anyhow, just to let you know that in parallel I am implementing the "references" properties, which will replace among others the "mapview" one. I'll let you know when it is ready so you can test it (and later on I will remove the "obsolete" properties, but of course, having copied their contents to the new properties) |
I managed to implement this property |
How is the current DP Implementation in Drupal affected by the references property? |
The "references" property makes obsolete the following properties:
the "path" property stays as it is (it is part of the original Frictionless Data Package specification). With the references now we can describe things like: "references": [ or "references": [ In addition, if we had a resource with multiple path values (imagine for instance a resource considered as a whole, but it is split in multiple files) we could have for instance something like this: With the references properties we can also make references to other resources within the Data Package (e.g., local effect resource pointing to the hazard-event to which is linked): Finally, we can also refer to external metadata repository if we want to know more about it: |
With respect to the "tags" property, it replaces the following individual properties:
|
@fgeyer16 , @patrickkaleta I need to create a "references" property (in the dp_resource object) which is an array of unlimited number of subarrays (which have a lenght = 3), any idea on how can I model this in Drupal?
For the moment it would be fine if we cannot limit the length of the sub-arrays. The content of the subarrays is just text.
See below an example with 2 sub-arrays:
"references": [
["@mapview:ogc:wms", "#/path", "https://clarity.meteogrid.com/geoserver/Local_Effects/wms?service=WMS&version=1.1.0&request=GetMap&layers=Local_Effects:LE_Tmrt_FrequentEvent_1971-2000_observations_Naples&bbox=4647500,1947000,4720500,2008000&width=725&height=768&srs=EPSG:3035&format=image/png"],
["@resource:hazard-event:heat-wave-duration:$temperature=28:$duration=6", "#/resources/[name='hazard_event-HW.6d_28C']"]
]
The text was updated successfully, but these errors were encountered: