Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since the ebucoreplus ontology primarily involves parent-to-child relationships, most filters will be based on these relationships. However, if you want to filter based on child-to-parent relationships, you can also do that. For this, you need to pass the property name with the complete IRI enclosed in angle brackets (<>). The filter will be applied accordingly.

Example
1. Filtering by a Property

To filter EditorialObject instances where the property titleis Das Boot, you would use:

Code Block
languagesh
curl -X GET "http://localhost/enapso-dev/view-management/v1/editorialObject?filter.title=Das%20Boot" 

...

2. Filtering by a Property with a Full IRI (Child to Parent)

In ebucorepus ontologies, relationships are defined from a parent entity to a child entity. However, there are cases where we need to filter entities based on relationships defined in the opposite direction, i.e., from child to parent. This is known as a child-to-parent relationship.

...

  • Encoding URIs: When passing any value, ensure it is URL-encoded.

3. Detailed Example with Multiple Filters

Suppose you want to filter EditorialObject instances where:

...