Prez is a data-configurable Linked Data API framework that delivers profiles of Knowledge Graph data according to the Content Negotiation by Profile standard.
Allows specification of filter-to-focus and focus-to-filter filters as Query String Arguments on the search route. Examples:
/search?term=contact&method=default& /&_format=text/anot+turtle
_adds a triple to the search query of the form ?search_result_uri skos:broader <http://resource.geosciml.org/classifier/cgi/contacttype/metamorphic_contact>_
/search?term=address&method=default&filter-to-focus[rdfs:member]=https://linked.data.gov.au/datasets/gnaf
_adds a triple to the search query of the form <https://linked.data.gov.au/datasets/gnaf> rdfs:member ?search_result_uri_
Search with a filter on multiple objects (the list of objects is treated as an OR)/search?term=address&method=default&filter-to-focus[rdfs:member]=https://linked.data.gov.au/datasets/gnaf,https://linked.data.gov.au/datasets/defgadds a triple to the search query of the form <https://linked.data.gov.au/datasets/gnaf> rdfs:member ?o . VALUES ?o { <https://linked.data.gov.au/datasets/gnaf> <https://linked.data.gov.au/datasets/defg>}
URIs and CURIEs can be used to specify filters.
If CURIEs are used, they should only be CURIEs returned as dcterms:identifier "{identifier}"^^prez:identifier or in prez:links. There is no guarantee prefix declarations in turtle or other RDF serialisations returned by prez are consistent with the prefixes used internally by prez for links and identifiers.
Adds some common ontologies (dcterms, rdfs etc.) so that annotations for data using these are automatically added to annotated responses
Sets the timeout to 30s in the shared httpx AsyncClient and Client objects for all calls to the database
filter-to-focus
andfocus-to-filter
filters as Query String Arguments on the search route. Examples:/search?term=contact&method=default& /&_format=text/anot+turtle
_adds a triple to the search query of the form?search_result_uri skos:broader <http://resource.geosciml.org/classifier/cgi/contacttype/metamorphic_contact>
_/search?term=address&method=default&filter-to-focus[rdfs:member]=https://linked.data.gov.au/datasets/gnaf
_adds a triple to the search query of the form<https://linked.data.gov.au/datasets/gnaf> rdfs:member ?search_result_uri
_Search with a filter on multiple objects (the list of objects is treated as an OR)
/search?term=address&method=default&filter-to-focus[rdfs:member]=https://linked.data.gov.au/datasets/gnaf,https://linked.data.gov.au/datasets/defg
adds a triple to the search query of the form<https://linked.data.gov.au/datasets/gnaf> rdfs:member ?o . VALUES ?o { <https://linked.data.gov.au/datasets/gnaf> <https://linked.data.gov.au/datasets/defg>}
dcterms:identifier "{identifier}"^^prez:identifier
or in prez:links. There is no guarantee prefix declarations in turtle or other RDF serialisations returned by prez are consistent with the prefixes used internally by prez for links and identifiers.