neo4j-labs / rdflib-neo4j

RDFLib Store backed by neo4j + n10s
Apache License 2.0
55 stars 6 forks source link

When hyphen in prefix:my-prefix closing the store fails #28

Closed ChristianTremblay closed 3 months ago

ChristianTremblay commented 3 months ago

I'm trying to import a model created using the new Ashrae 223P standard in Neo4j using rdflib-neo4j.

Our models include things like :

bacnet_references:00002 a bacnet:DeviceObject,
        bacnet:Object ;
    bacnet:object-identifier "device,5204" ;
    bacnet:object-name "CGM-2-004" ;
    bacnet:object-type bacnet:ObjectType.device ;
    bacnet:vendor-identifier "5"^^xsd:nonNegativeInteger ;
    bacnet:vendor-name "Unknown" .

When closing the store, I get CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError}

Related to this part in code :

https://github.com/neo4j-labs/rdflib-neo4j/blob/e04fc4034dd2ff0aaa4f87ea951222d807d8bd5c/rdflib_neo4j/query_composers/NodeQueryComposer.py#L7

alfredorubin96 commented 3 months ago

Thank you so much for your help, i merged your PR on the develop branch.