Skip to content

Add Instances pagination, search and order by features#75

Closed
syphax-bouazzouni wants to merge 8 commits into
ncbo:masterfrom
agroportal:pl/instances-features-patch
Closed

Add Instances pagination, search and order by features#75
syphax-bouazzouni wants to merge 8 commits into
ncbo:masterfrom
agroportal:pl/instances-features-patch

Conversation

@syphax-bouazzouni

@syphax-bouazzouni syphax-bouazzouni commented Jan 27, 2022

Copy link
Copy Markdown

To Merge before

What?

See ncbo/ontologies_linked_data#123
In addition here we have added two features

How to use

The pagination feature

Instance pagination is the default response of the following routes :

  • instances by a class : '/ontologies/:ontology/classes/:cls/instances'
  • instances by an ontology : /ontologies/:ontology/instances

The search feature

Adding the parameter "search=string" in the instances paths (routes), will filter the instances by the label (rdf:label), see example below
image

Order by feature

Order by works by using the parameters "sortby={property}" and "order={ASC|DESC}", see example below
image

Anything Else?

About me: IT engineer at LIRMM & MISTEA for Agroportal (France)
contact me at : syphax.bouazzouni@lirmm.fr or in the Ontoportal Alliance Slack

@syphax-bouazzouni

Copy link
Copy Markdown
Author

Included in ontoportal#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant