Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Instances pagination, search and order by features #75

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

syphax-bouazzouni
Copy link

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

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 : [email protected] or in the Ontoportal Alliance Slack

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