Skip to content

Commit

Permalink
#40 add properties for search
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Nov 11, 2021
1 parent a95864e commit e11eb53
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 22 additions & 1 deletion lib/defaults/default_store.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"https://atomicdata.dev/properties/shortname": "results"
},
{
"@id": "https://atomicdata.dev/properties/searchQuery",
"@id": "https://atomicdata.dev/properties/search/query",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/string",
"https://atomicdata.dev/properties/description": "A full-text search query. \n\nFor all features, see [the Tantivy docs](https://docs.rs/tantivy/0.16.1/tantivy/query/struct.QueryParser.html)",
"https://atomicdata.dev/properties/isA": [
Expand All @@ -30,6 +30,27 @@
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/shortname": "q"
},
{
"@id": "https://atomicdata.dev/properties/search/limit",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/integer",
"https://atomicdata.dev/properties/description": "Maximum number of search results.",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/shortname": "limit"
},
{
"@id": "https://atomicdata.dev/properties/search/property",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/atomicURL",
"https://atomicdata.dev/properties/description": "Filter results by this property URL.",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/classType": "https://atomicdata.dev/classes/Property",
"https://atomicdata.dev/properties/shortname": "property"
},
{
"@id": "https://atomicdata.dev/properties/isDynamic",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/boolean",
Expand Down
4 changes: 3 additions & 1 deletion lib/src/urls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ pub const COLLECTION_SORT_DESC: &str = "https://atomicdata.dev/properties/collec
pub const ENDPOINT_PARAMETERS: &str = "https://atomicdata.dev/properties/endpoint/parameters";
pub const ENDPOINT_RESULTS: &str = "https://atomicdata.dev/properties/endpoint/results";
pub const PATH: &str = "https://atomicdata.dev/properties/path";
pub const SEARCH_QUERY: &str = "https://atomicdata.dev/properties/searchQuery";
pub const SEARCH_QUERY: &str = "https://atomicdata.dev/properties/search/query";
pub const SEARCH_LIMIT: &str = "https://atomicdata.dev/properties/search/limit";
pub const SEARCH_PROPERTY: &str = "https://atomicdata.dev/properties/search/property";
// ... for Hierarchy / Drive
pub const PARENT: &str = "https://atomicdata.dev/properties/parent";
pub const READ: &str = "https://atomicdata.dev/properties/read";
Expand Down

0 comments on commit e11eb53

Please sign in to comment.