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

Test Meta properties from TinkerPop #7

Open
BruJu opened this issue Aug 25, 2021 · 0 comments
Open

Test Meta properties from TinkerPop #7

BruJu opened this issue Aug 25, 2021 · 0 comments

Comments

@BruJu
Copy link
Owner

BruJu commented Aug 25, 2021

if (propertyObject.meta !== undefined) {
let metaNode = DataFactory.blankNode();
this._addQuad(o, prec.hasMetaProperties, metaNode);
for (let metaKey in propertyObject.meta) {
let metaValue = propertyObject.meta[metaKey];
let propertyNode = propMaker[metaKey + tag];
this._labelize(propertyNode, metaKey);
this._addQuad(propertyNode, rdf.type, prec.PropertyKey);
this._addQuad(propertyNode, rdf.type, prec.CreatedPropertyKey);
this._addQuad(prec.CreatedPropertyKey, rdfs.subClassOf, prec.CreatedVocabulary);
let target = buildPropertyValue(metaValue);
this._addQuad(metaNode, propertyNode, target);
}
}

This snippet is never tested in a standard npm run test run, and probably buggy.

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