phenoscape / phenoscape-kb-services

Web services application for the Phenoscape RDF knowledgebase.
https://kb.phenoscape.org/apidocs/#/
MIT License
1 stars 3 forks source link

type of term for search #50

Open snacktavish opened 6 years ago

snacktavish commented 6 years ago

In the http://kb.phenoscape.org/apidocs/#/Terms/get_term_search you need to specify 'type'. It suggests 'the type of term to search for, e.g. http://www.w3.org/2002/07/owl#Class' Is there a list of the possible values for type?

balhoff commented 6 years ago

One way is to use a SPARQL query like this: http://yasgui.org/short/Hk8iR32-M

But that actually returns a mix of OWL built-in types and also any types from our ontologies which have instances in the data. The real intent of the search is to restrict by OWL built-in types, with http://www.w3.org/2002/07/owl#Class being the most typical example. Another common one might be owl:ObjectProperty.

hlapp commented 5 years ago

@balhoff the YASGUI query seems to use a defunct SPARQL endpoint; presumably needs to changed after #76 is done?