Skip to content

Commit

Permalink
updated readme to include default
Browse files Browse the repository at this point in the history
  • Loading branch information
mburridge96 committed Feb 23, 2024
1 parent ae00553 commit c2f788e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py-rocraters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ context = PyRoCrateContext.from_string(" https://w3id.org/ro/crate/1.1/context")

# Initialise empty crate
crate = PyRoCrate(context)

# For an easy start, you can make a default crate!
default_crate = PyRoCrate.new_default()
```

Now, there are 4 primary objects (dictionaries) that can be added to the crate:
Expand Down Expand Up @@ -113,4 +116,4 @@ contextual_target.delete_entity("#JaneDoe")
# The ID will be used to serach the crate and overwrites the object with an indentical "id" key
crate.update_data(data_target)
crate.write()
```
```

0 comments on commit c2f788e

Please sign in to comment.