Comments (2)
Defensive coding does not mean ignoring the spec. Enforcing restrictions often makes the implementation less verbose and more efficient. In this case, it allows to perform an O(1) check rather than a O(n) one. For type lists, however, this should not be a big deal (hopefully nobody's going to use thousands of types for any entity), so we can make this change in the library before it makes it into the spec (see ResearchObject/ro-crate#182).
from ro-crate-py.
Many thanks Simone! my library works now
from ro-crate-py.
Related Issues (20)
- write-zip CLI command reinitializes the crate
- Inconsistent defaults for validate_url
- "file" is a reserved keyword HOT 1
- Package: drop support Python 3.6 and add Python 3.9 and 3.10
- Remove software version defaults
- Iterate through graph HOT 6
- Handle duplicates in property values HOT 2
- Add contentUrl property to files when it's known
- Fix behavior wrt "missing" data entities
- Broken error message in pick_type
- Add method to get entities by type
- Distribution request: rocrate-py on conda forge HOT 5
- Entity id should not be modifiable
- Support indirect data entity linking from root
- ro-crate profile functionality HOT 4
- Allow to attach partials to a crate? HOT 6
- Export entities/models in `rocrate.model.__init__`
- Document how to create a Workflow Run Crate file HOT 11
- dump the metadata of the RO-Crate HOT 1
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 ro-crate-py.