Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to map 'reserved' Neosemantics properties? #323

Open
remerjohnson opened this issue Jun 11, 2024 · 0 comments
Open

How to map 'reserved' Neosemantics properties? #323

remerjohnson opened this issue Jun 11, 2024 · 0 comments

Comments

@remerjohnson
Copy link

Hello. I currently map properties from an ontology using the documentation, so e.g., "myont:has_package" becomes "HAS_PACKAGES" in Neo4j.

However, how would I do the same mapping for the 'inherent' Neo4j properties, such as Resource.uri? I've tried:

'''WITH
           [{ neoSchemaElem : "MYONT_IRI", publicSchemaElem: "uri" }] AS mappings,
           "neo4j://com.neo4j/voc#" AS Neo4jUri
           CALL n10s.nsprefixes.add("neo4j",Neo4jUri) YIELD namespace
           UNWIND mappings as m
           CALL n10s.mapping.add(Neo4jUri + m.publicSchemaElem,m.neoSchemaElem) YIELD schemaElement
           RETURN count(schemaElement) AS mappingsDefined;
                    '''

The mapping shows up fine in n10s.mapping.list, but the field/property name remains unmapped, with uri. Can this be changed?

If this cannot be done with Neosemantics and can just be done in CYPHER, that's fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant