Skip to content

Commit

Permalink
add prez ontology annotations. and update test data to reflect the ne…
Browse files Browse the repository at this point in the history
…w labels.
  • Loading branch information
lalewis1 committed Jul 15, 2024
1 parent 19e7982 commit af6f9ce
Show file tree
Hide file tree
Showing 19 changed files with 90 additions and 0 deletions.
27 changes: 27 additions & 0 deletions prez/reference_data/context_ontologies/prez-ontology.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<https://prez.dev/link> <http://www.w3.org/2000/01/rdf-schema#label> "link" <https://prez.dev/ontology> .
<https://prez.dev/count> <http://www.w3.org/2000/01/rdf-schema#label> "count" <https://prez.dev/ontology> .
<https://prez.dev/members> <http://www.w3.org/2000/01/rdf-schema#label> "members" <https://prez.dev/ontology> .
<https://prez.dev/searchResultMatch> <http://www.w3.org/2000/01/rdf-schema#label> "Matched Term" <https://prez.dev/ontology> .
<https://prez.dev/searchResultPredicate> <http://www.w3.org/2000/01/rdf-schema#label> "Matched Predicate" <https://prez.dev/ontology> .
<https://prez.dev/searchResultWeight> <http://www.w3.org/2000/01/rdf-schema#label> "Search Result Weight" <https://prez.dev/ontology> .
<https://prez.dev/CatalogList> <http://www.w3.org/2000/01/rdf-schema#label> "Catalog List" <https://prez.dev/ontology> .
<https://prez.dev/DatasetList> <http://www.w3.org/2000/01/rdf-schema#label> "Dataset List" <https://prez.dev/ontology> .
<https://prez.dev/FeatureCollectionList> <http://www.w3.org/2000/01/rdf-schema#label> "Feature Collection List" <https://prez.dev/ontology> .
<https://prez.dev/FeatureList> <http://www.w3.org/2000/01/rdf-schema#label> "Feature List" <https://prez.dev/ontology> .
<https://prez.dev/SchemesList> <http://www.w3.org/2000/01/rdf-schema#label> "Schemes List" <https://prez.dev/ontology> .
<https://prez.dev/VocPrezCollectionList> <http://www.w3.org/2000/01/rdf-schema#label> "VocPrez Collection List" <https://prez.dev/ontology> .
<http://www.w3.org/ns/dx/connegp/altr-ext#hasDefaultResourceFormat> <http://www.w3.org/2000/01/rdf-schema#label> "Default Resource Format" <https://prez.dev/ontology> .
<http://www.w3.org/ns/dx/connegp/altr-ext#hasResourceFormat> <http://www.w3.org/2000/01/rdf-schema#label> "Has Resource Format" <https://prez.dev/ontology> .
<http://www.w3.org/ns/dx/connegp/altr-ext#constrainsClass> <http://www.w3.org/2000/01/rdf-schema#label> "Constrains Class" <https://prez.dev/ontology> .
<http://www.w3.org/ns/dx/connegp/altr-ext#hasNodeShape> <http://www.w3.org/2000/01/rdf-schema#label> "Has Node Shape" <https://prez.dev/ontology> .
<http://www.w3.org/ns/dx/connegp/altr-ext#hasDefaultProfile> <http://www.w3.org/2000/01/rdf-schema#label> "Has Default Profile" <https://prez.dev/ontology> .
<http://example.com/shacl-extension#allPredicateValues> <http://www.w3.org/2000/01/rdf-schema#label> "All Predicate Values" <https://prez.dev/ontology> .
<http://example.com/shacl-extension#limit> <http://www.w3.org/2000/01/rdf-schema#comment> "limit" <https://prez.dev/ontology> .
<http://example.com/shacl-extension#offset> <http://www.w3.org/2000/01/rdf-schema#comment> "offset" <https://prez.dev/ontology> .
<http://example.com/shacl-extension#orderBy> <http://www.w3.org/2000/01/rdf-schema#comment> "order by" <https://prez.dev/ontology> .
<http://example.com/shacl-extension#bnode-depth> <http://www.w3.org/2000/01/rdf-schema#comment> "blank node depth" <https://prez.dev/ontology> .
<https://prez.dev/ont/endpointTemplate> <http://www.w3.org/2000/01/rdf-schema#label> "endpoint template" <https://prez.dev/ontology> .
<https://prez.dev/ont/deliversClasses> <http://www.w3.org/2000/01/rdf-schema#label> "delivers classes" <https://prez.dev/ontology> .
<https://prez.dev/ont/parentEndpoint> <http://www.w3.org/2000/01/rdf-schema#label> "parent endpoint" <https://prez.dev/ontology> .
<https://prez.dev/ont/parentToFocusRelation> <http://www.w3.org/2000/01/rdf-schema#label> "parent to focus relation" <https://prez.dev/ontology> .
<https://prez.dev/ont/focusToParentRelation> <http://www.w3.org/2000/01/rdf-schema#label> "focus to parent relation" <https://prez.dev/ontology> .
2 changes: 2 additions & 0 deletions tests/data/catprez/expected_responses/catalog_anot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:count rdfs:label "count" .

prez:link rdfs:label "link" .


<https://data.idnau.org/pid/democat> a dcat:Catalog ;
rdfs:label "IDN Demonstration Catalogue" ;
dcterms:description """The Indigenous Data Network's demonstration catalogue of datasets. This catalogue contains records of datasets in Australia, most of which have some relation to indigenous Australia.
Expand Down
2 changes: 2 additions & 0 deletions tests/data/catprez/expected_responses/resource_anot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

<https://prez.dev/link> rdfs:label "link" .

<https://data.idnau.org/pid/AAC-SA> a dcat:Resource ;
dcterms:creator <https://linked.data.gov.au/org/anu> ;
dcterms:description """This study contains time series of data of the Annual Aboriginal Census for Australia, Australian Capital Territory, New South Wales, Northern Territory, Queensland, South Australia, Tasmania, Victoria and Western Australia from 1921 to 1944.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ dcterms:title rdfs:label "Title"@en .

rdfs:label rdfs:label "label" .

<https://prez.dev/count> rdfs:label "count" .

<https://prez.dev/link> rdfs:label "link" .

<https://data.idnau.org/pid/democat> rdfs:label "IDN Demonstration Catalogue" ;
dcterms:description """The Indigenous Data Network's demonstration catalogue of datasets. This catalogue contains records of datasets in Australia, most of which have some relation to indigenous Australia.
Expand Down
2 changes: 2 additions & 0 deletions tests/data/object/expected_responses/fc.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ rdfs:label rdfs:label "label" .

rdfs:member rdfs:label "member" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
2 changes: 2 additions & 0 deletions tests/data/object/expected_responses/feature.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ rdfs:isDefinedBy rdfs:label "isDefinedBy" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

prez:searchResultMatch rdfs:label "Matched Term" .

prez:searchResultPredicate rdfs:label "Matched Predicate" .

prez:searchResultWeight rdfs:label "Search Result Weight" .

skos:altLabel rdfs:label "alternative label"@en ;
skos:definition "An alternative lexical label for a resource."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ rdfs:isDefinedBy rdfs:label "isDefinedBy" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

prez:searchResultMatch rdfs:label "Matched Term" .

prez:searchResultPredicate rdfs:label "Matched Predicate" .

prez:searchResultWeight rdfs:label "Search Result Weight" .

skos:broader rdfs:label "has broader"@en ;
skos:definition "Relates a concept to a concept that is more general in meaning."@en .

Expand Down
2 changes: 2 additions & 0 deletions tests/data/spaceprez/expected_responses/dataset_anot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ rdfs:label rdfs:label "label" .

rdfs:member rdfs:label "member" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

prez:count rdfs:label "count" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
2 changes: 2 additions & 0 deletions tests/data/spaceprez/expected_responses/feature_anot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ rdfs:label rdfs:label "label" .

rdfs:member rdfs:label "member" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ rdfs:label rdfs:label "label" .

rdfs:member rdfs:label "member" .

prez:link rdfs:label "link" .

prez:count rdfs:label "count" .

<http://example.com/datasets/sandgate/catchments> dcterms:description "Hydrological catchments that are 'contracted', that is, guarenteed, to appear on multiple Geofabric surface hydrology data products"@en ;
dcterms:identifier "sndgt:catchments"^^prez:identifier ;
dcterms:title "Geofabric Contracted Catchments"@en ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ rdfs:label rdfs:label "label" .

rdfs:member rdfs:label "member" .

prez:link rdfs:label "link" .

prez:count rdfs:label "count" .

<http://example.com/datasets/sandgate/cc12109444> rdfs:label "Contracted Catchment 12109444" ;
dcterms:identifier "sndgt:cc12109444"^^prez:identifier ;
prez:link "/s/datasets/exds:sandgate/collections/sndgt:catchments/items/sndgt:cc12109444" .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

prez:count rdfs:label "count" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ rdfs:isDefinedBy rdfs:label "isDefinedBy" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

skos:broader rdfs:label "has broader"@en ;
skos:definition "Relates a concept to a concept that is more general in meaning."@en .

Expand Down
4 changes: 4 additions & 0 deletions tests/data/vocprez/expected_responses/vocab_listing_anot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ rdf:type rdfs:label "type" .

rdfs:label rdfs:label "label" .

prez:link rdfs:label "link" .

prez:count rdfs:label "count" .

skos:definition rdfs:label "definition"@en ;
skos:definition "A statement or formal explanation of the meaning of a concept."@en .

Expand Down

0 comments on commit af6f9ce

Please sign in to comment.