Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Remove RDFGraph name syntactic sugar support from node variables (hashtag2782) #28

Open vikramsubramanian opened 9 months ago

vikramsubramanian commented 9 months ago

We currently support using the RDFGraph name as a syntactic sugar for node variables. That is, suppose you have an RDFGraph named UniKG. Then you can do the following:

MATCH (a:UniKG)
RETURN a.iri, a.val

Output:
--------------------------------------------------------------
| a.iri                                           | a.val    |
--------------------------------------------------------------
|                                                 | Waterloo |
--------------------------------------------------------------
|                                                 | 150000   |
--------------------------------------------------------------
...
--------------------------------------------------------------
|                   |          |
--------------------------------------------------------------
|  |          |
--------------------------------------------------------------
...
--------------------------------------------------------------

I don't find this very valuable and this is extra code for us. We can just support the following multi-label querying to get the same output:

MATCH (a:UniKG_r:UniKG_l)
RETURN a.iri, a.val

We should still keep the UniKG rel group to simplify querying triples, since we already have a notion of rel groups. )

mayil-ai[bot] commented 9 months ago

Summary: Remove support for using RDFGraph name as syntactic sugar for node variables.

Possible Solution

Based on the provided information, the issue is about removing the feature that allows using RDFGraph names as syntactic sugar in node variable queries. To address this issue:

Code snippets to check