From 3fa1d68b403c463475acf96ba464db7e2e474e74 Mon Sep 17 00:00:00 2001 From: David Osumi-Sutherland Date: Tue, 25 Jun 2019 15:47:24 +0100 Subject: [PATCH] Add Entity restriction to core query Fixes #333 ** WARNING: DO NOT MERGE UNTIL pdb-dev IS REBUILT! DOING SO WILL BREAK ALL TERM INFO!!! *** --- model/vfb.xmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/vfb.xmi b/model/vfb.xmi index db33cc7c3..076a3a79d 100644 --- a/model/vfb.xmi +++ b/model/vfb.xmi @@ -359,7 +359,7 @@ xsi:type="gep_2:SimpleQuery" name="Get term core info" description="Fetches term core details." - query="MATCH (primary {short_form: '$ID'}) RETURN { core: { short_form: primary.short_form, label: primary.label, iri: primary.iri, types: labels(primary) }} as term" + query="MATCH (primary:Entity {short_form: '$ID'}) RETURN { core: { short_form: primary.short_form, label: primary.label, iri: primary.iri, types: labels(primary) }} as term" countQuery="MATCH (primary {short_form: '$ID'} ) RETURN count(primary) as count"/>