Difference between revisions of "CTS2 RDF Plugin"
Jump to navigation
Jump to search
(Created page with "== CTS2 REST Services == === CodeSystemCatalogQuery === * Query: {{CTS2_REST_base}}codesystems ** Query with 'about' filter: {{CTS2_REST_base}}codesystems?matchvalue=oid&filt...") |
|||
Line 3: | Line 3: | ||
=== CodeSystemCatalogQuery === | === CodeSystemCatalogQuery === | ||
* Query: {{CTS2_REST_base}}codesystems | * Query: {{CTS2_REST_base}}codesystems | ||
− | ** Query with 'about' filter: {{ | + | ** Query with 'about' filter: {{CTS2_RDF_base}}codesystems?matchvalue=oid&filtercomponent=about |
− | ** Query with 'name' filter: {{ | + | ** Query with 'name' filter: {{CTS2_RDF_base}}codesystems?matchvalue=nci&filtercomponent=resourceName |
− | ** Query with 'description' filter: {{ | + | ** Query with 'description' filter: {{CTS2_RDF_base}}codesystems?matchvalue=databases&filtercomponent=resourceSynopsis |
− | ** Query with 'keyword' filter: {{ | + | ** Query with 'keyword' filter: {{CTS2_RDF_base}}codesystems?matchvalue=100&filtercomponent=keyword |
− | ** Query with 'bioportalId' filter: {{ | + | ** Query with 'bioportalId' filter: {{CTS2_RDF_base}}codesystems?matchvalue=1007&filtercomponent=ontologyId&referencetype=property |
** ('contains' and 'exactmatch' algorithms supported) | ** ('contains' and 'exactmatch' algorithms supported) | ||
* 'Count' via HEAD call | * 'Count' via HEAD call | ||
=== CodeSystemCatalogRead === | === CodeSystemCatalogRead === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}codesystem/SNOMEDCT |
− | * Read by uri: {{ | + | * Read by uri: {{CTS2_RDF_base}}codesystembyuri?uri=http://purl.bioontology.org/ontology/SNOMEDCT |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== CodeSystemCatalogVersionQuery === | === CodeSystemCatalogVersionQuery === | ||
− | * Query: {{ | + | * Query: {{CTS2_RDF_base}}codesystemversions |
− | * Query code system versions of code system: {{ | + | * Query code system versions of code system: {{CTS2_RDF_base}}codesystem/SNOMEDCT/versions |
− | ** Query with 'about' filter: {{ | + | ** Query with 'about' filter: {{CTS2_RDF_base}}codesystemversions?matchvalue=oid&filtercomponent=about |
− | ** Query with 'name' filter: {{ | + | ** Query with 'name' filter: {{CTS2_RDF_base}}codesystemversions?matchvalue=nci&filtercomponent=resourceName |
− | ** Query with 'description' filter: {{ | + | ** Query with 'description' filter: {{CTS2_RDF_base}}codesystemversions?matchvalue=anatomy&filtercomponent=resourceSynopsis |
** ('contains' and 'exactmatch' algorithms supported) | ** ('contains' and 'exactmatch' algorithms supported) | ||
* 'Count' via HEAD call | * 'Count' via HEAD call | ||
=== CodeSystemVersionCatalogRead === | === CodeSystemVersionCatalogRead === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}codesystem/LNC/version/LNC_226_RRF |
− | * Or OfficialResourceVersionId: {{ | + | * Or OfficialResourceVersionId: {{CTS2_RDF_base}}codesystem/LNC/version/226 |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== EntityDescriptionQuery === | === EntityDescriptionQuery === | ||
− | * Query with 'description' {{ | + | * Query with 'description' {{CTS2_RDF_base}}entities?matchvalue=swelling |
− | * Get all entities of code system version: {{ | + | * Get all entities of code system version: {{CTS2_RDF_base}}codesystem/AIR/version/AIR_1993_RRF/entities |
* Query entities of code system version with 'keyword' filter: {{CTS2_REST_base}}codesystem/LNC/version/LNC_226_RRF/entities?matchvalue=100 | * Query entities of code system version with 'keyword' filter: {{CTS2_REST_base}}codesystem/LNC/version/LNC_226_RRF/entities?matchvalue=100 | ||
** ('contains' and 'exactmatch' algorithms supported) | ** ('contains' and 'exactmatch' algorithms supported) | ||
Line 38: | Line 38: | ||
=== EntityDescriptionRead === | === EntityDescriptionRead === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}codesystem/LNC/version/LNC_226_RRF/entity/LP31957-1 |
* Or using CSV OfficialResourceVersionId : {{CTS2_REST_base}}codesystem/LNC/version/226/entity/LP31957-1 | * Or using CSV OfficialResourceVersionId : {{CTS2_REST_base}}codesystem/LNC/version/226/entity/LP31957-1 | ||
*: NOTE: Does not support Entity lookup by URI (See notes below) | *: NOTE: Does not support Entity lookup by URI (See notes below) | ||
Line 44: | Line 44: | ||
=== ValueSetCatalogQuery === | === ValueSetCatalogQuery === | ||
− | * Query: {{ | + | * Query: {{CTS2_RDF_base}}valuesets |
− | ** Query with 'about' filter: {{ | + | ** Query with 'about' filter: {{CTS2_RDF_base}}valuesets?matchvalue=FMA_subset&filtercomponent=about |
− | ** Query with 'name' filter: {{ | + | ** Query with 'name' filter: {{CTS2_RDF_base}}valuesets?matchvalue=set&filtercomponent=resourceName |
− | ** Query with 'description' filter: {{ | + | ** Query with 'description' filter: {{CTS2_RDF_base}}valuesets?matchvalue=anatomy&filtercomponent=resourceSynopsis |
− | ** Query based on code system restriction: {{ | + | ** Query based on code system restriction: {{CTS2_RDF_base}}valuesets?codesystem=SNOMEDCT |
** ('contains' and 'exactmatch' algorithms supported) | ** ('contains' and 'exactmatch' algorithms supported) | ||
* 'Count' via HEAD call | * 'Count' via HEAD call | ||
=== ValueSetCatalogRead === | === ValueSetCatalogRead === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}valueset/SNOMEDCT-MAS |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== ValueSetDefinitionQuery === | === ValueSetDefinitionQuery === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}valueset/SCTSPA/definitions |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== ValueSetDefinitionRead === | === ValueSetDefinitionRead === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}valueset/SCTSPA/definition/42157 |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== ValueSetDefinitionResolutionService === | === ValueSetDefinitionResolutionService === | ||
− | * Read by name: {{ | + | * Read by name: {{CTS2_RDF_base}}valueset/SCTSPA/definition/42157/resolution?resolutiontype=entitydirectory |
* 'Exists' via HEAD call | * 'Exists' via HEAD call | ||
=== AssociationQuery === | === AssociationQuery === | ||
− | * Query 'sourceOf' associations of entity: {{ | + | * Query 'sourceOf' associations of entity: {{CTS2_RDF_base}}codesystem/SNOMEDCT/version/SNOMEDCT_2010_01_31_RRF/entity/100001001/sourceof |
− | * Query 'children' associations of entity: {{ | + | * Query 'children' associations of entity: {{CTS2_RDF_base}}codesystem/MSH/version/MSH_2009_2009_02_13_RRF/entity/D006321/children |
=== AdvancedAssociationQuery === | === AdvancedAssociationQuery === | ||
Line 77: | Line 77: | ||
* NOTES: Currently only supports direction=FORWARD and depth=1 | * NOTES: Currently only supports direction=FORWARD and depth=1 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== SVN == | == SVN == | ||
SVN [http://informatics.mayo.edu/svn/trunk/cts2/impl/cts2-rest/ url] | SVN [http://informatics.mayo.edu/svn/trunk/cts2/impl/cts2-rest/ url] |
Revision as of 12:01, 1 June 2012
CTS2 REST Services
CodeSystemCatalogQuery
- Query: http://informatics.mayo.edu/cts2/rest/codesystems
- Query with 'about' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystems?matchvalue=oid&filtercomponent=about
- Query with 'name' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystems?matchvalue=nci&filtercomponent=resourceName
- Query with 'description' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystems?matchvalue=databases&filtercomponent=resourceSynopsis
- Query with 'keyword' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystems?matchvalue=100&filtercomponent=keyword
- Query with 'bioportalId' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystems?matchvalue=1007&filtercomponent=ontologyId&referencetype=property
- ('contains' and 'exactmatch' algorithms supported)
- 'Count' via HEAD call
CodeSystemCatalogRead
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/SNOMEDCT
- Read by uri: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystembyuri?uri=http://purl.bioontology.org/ontology/SNOMEDCT
- 'Exists' via HEAD call
CodeSystemCatalogVersionQuery
- Query: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystemversions
- Query code system versions of code system: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/SNOMEDCT/versions
- Query with 'about' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystemversions?matchvalue=oid&filtercomponent=about
- Query with 'name' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystemversions?matchvalue=nci&filtercomponent=resourceName
- Query with 'description' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystemversions?matchvalue=anatomy&filtercomponent=resourceSynopsis
- ('contains' and 'exactmatch' algorithms supported)
- 'Count' via HEAD call
CodeSystemVersionCatalogRead
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/LNC/version/LNC_226_RRF
- Or OfficialResourceVersionId: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/LNC/version/226
- 'Exists' via HEAD call
EntityDescriptionQuery
- Query with 'description' http://informatics.mayo.edu/cts2/services/bioportal-rdf/entities?matchvalue=swelling
- Get all entities of code system version: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/AIR/version/AIR_1993_RRF/entities
- Query entities of code system version with 'keyword' filter: http://informatics.mayo.edu/cts2/rest/codesystem/LNC/version/LNC_226_RRF/entities?matchvalue=100
- ('contains' and 'exactmatch' algorithms supported)
- 'Count' via HEAD call
EntityDescriptionRead
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/LNC/version/LNC_226_RRF/entity/LP31957-1
- Or using CSV OfficialResourceVersionId : http://informatics.mayo.edu/cts2/rest/codesystem/LNC/version/226/entity/LP31957-1
- NOTE: Does not support Entity lookup by URI (See notes below)
- 'Exists' via HEAD call
ValueSetCatalogQuery
- Query: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valuesets
- Query with 'about' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valuesets?matchvalue=FMA_subset&filtercomponent=about
- Query with 'name' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valuesets?matchvalue=set&filtercomponent=resourceName
- Query with 'description' filter: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valuesets?matchvalue=anatomy&filtercomponent=resourceSynopsis
- Query based on code system restriction: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valuesets?codesystem=SNOMEDCT
- ('contains' and 'exactmatch' algorithms supported)
- 'Count' via HEAD call
ValueSetCatalogRead
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valueset/SNOMEDCT-MAS
- 'Exists' via HEAD call
ValueSetDefinitionQuery
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valueset/SCTSPA/definitions
- 'Exists' via HEAD call
ValueSetDefinitionRead
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valueset/SCTSPA/definition/42157
- 'Exists' via HEAD call
ValueSetDefinitionResolutionService
- Read by name: http://informatics.mayo.edu/cts2/services/bioportal-rdf/valueset/SCTSPA/definition/42157/resolution?resolutiontype=entitydirectory
- 'Exists' via HEAD call
AssociationQuery
- Query 'sourceOf' associations of entity: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/SNOMEDCT/version/SNOMEDCT_2010_01_31_RRF/entity/100001001/sourceof
- Query 'children' associations of entity: http://informatics.mayo.edu/cts2/services/bioportal-rdf/codesystem/MSH/version/MSH_2009_2009_02_13_RRF/entity/D006321/children
AdvancedAssociationQuery
- Get root nodes of a code system version: http://informatics.mayo.edu/cts2/rest/codesystem/SNOMEDCT/version/SNOMEDCT_2010_01_31_RRF/graph?focus=TOP_NODE&direction=FORWARD
- Get graph of focusn node in code system version:http://informatics.mayo.edu/cts2/rest/codesystem/SNOMEDCT/version/SNOMEDCT_2010_01_31_RRF/graph?focus=243796009&direction=FORWARD
- NOTES: Currently only supports direction=FORWARD and depth=1
SVN
SVN url