...
To create a new EditorialObject
class instance, send a POST request using the following curl command. Ensure that the namedGraph
key and value (namedGraph specifies the graph in the triplestore where your information is preserved), are included in the POST body with the information you want to create. Passing the namedGraph
is necessary when using ENAPSO together with the free version. Additionally, you
You can include an optional namespace
variable, which is used to create a unique IRI by attaching it to the IRI before the UUID. If you pass both namespace
and iri
in the variables
object, it will use the IRI you provide. If you pass only namespace
and not iri
, it will generate the IRI using the namespace
. If you do not pass either iri
or namespace
, it will use the default namespace and create the IRI.
Code Block | ||
---|---|---|
| ||
curl -X POST "http://localhost/enapso-dev/view-management/v1/editorialObject" -H "Content-Type: application/json" -d "{\"namedGraph\": \"http://www.ebu.ch/metadata/ontologies/ebucoreplus/demodata\",\"namespace\": \"http://www.ebu.ch/metadata/ontologies/ebucoreplus/demodata/custom\",\"variables\": {\"iri\": \"http://ont.enapso.com/sparql-template#EditorialObject_2f9b1462-e937-4416-8c23-ce96fc42dc55\", \"title\": \"Never Look Away\", \"shotLog\": \"Visual storytelling that captures the protagonist artistic journey and the tumultuous history of Germany.\"}}" |
...