Skip to content
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

Update read_camtrapdp() docs: don't read all resources #93

Open
PietrH opened this issue Jul 4, 2024 · 3 comments
Open

Update read_camtrapdp() docs: don't read all resources #93

PietrH opened this issue Jul 4, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@PietrH
Copy link
Member

PietrH commented Jul 4, 2024

          Alrighty! I would suggest making note of this behaviour (we don't read everything, only default tables) in the documentation of `read_camtrapdp()`

Originally posted by @PietrH in #90 (comment)

@PietrH PietrH self-assigned this Jul 4, 2024
@PietrH PietrH added the documentation Improvements or additions to documentation label Jul 4, 2024
@PietrH
Copy link
Member Author

PietrH commented Jul 4, 2024

@peterdesmet So, If I understand you correctly a user is supposed to get custom/extra resources out of a Camera Trap Data Package via x$data, but via frictionless::read_resource()

Like this:

frictionless::read_resource(camtrapdp::example_dataset(), "individuals")
#> Error in `get_schema()`:
#> ! Resource "individuals" must have a profile property with value
#>   "tabular-data-resource".

Created on 2024-07-04 with reprex v2.1.0

It seems like this currently doesn't work, because frictionless::read_resource() only supports tabular data. Do you have any plans on supporting non tabular data in frictionless::read_resource()?

@PietrH
Copy link
Member Author

PietrH commented Jul 4, 2024

I think it's important to get a better idea of how we'd recommend getting these custom resources out, before we write the docs on them.

@PietrH
Copy link
Member Author

PietrH commented Jul 4, 2024

Note to self: snippet on how to read non tabular resources

#90 (comment)

@PietrH PietrH removed their assignment Jul 4, 2024
@PietrH PietrH added the question Further information is requested label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant