bruju / prec Goto Github PK
View Code? Open in Web Editor NEWProperty Graph - RDF Experimental Converter: Translate Property Graphs into RDF graphs by bringing extra semantic from a context
License: MIT License
Property Graph - RDF Experimental Converter: Translate Property Graphs into RDF graphs by bringing extra semantic from a context
License: MIT License
PREC/src/prec/graph-builder.ts
Lines 392 to 409 in 4ec835c
This snippet is never tested in a standard npm run test
run, and probably buggy.
The term entity is confusing and not really needed here.
prec:edgeIs
and prec:entityIs
with prec:selfIs
selfIs
is more intuitive: "I'm removing pvar:self
, what plays the role of pvar:self
in my template graph ?"pvar:entity
with pvar:holder
pvar:entity
, the question of "which entity am I talking about?" risesBecause of the changes in the JSON alternate model, the tinkerpop tests doesn't pass anymore (mocha test\with_property_graph\tinkerpop.js
)
Note that the node gremlin-to-rdf.js
still produces the expected output.
^ Title
Why: WIP proof of PRSC reversability mentions pvar:self instead of distinct values for pvar:node and pvar:edge.
Corner cases that are not yet tested and are probably bugged:
Property Graph
[ ] -(s: "A Subject")-> [ ]
Context
[] a prec:PropertyModel ;
prec:relationshipIRI rdf:subject ;
prec:modelAs prec:DirectTriples .
prec:Relationships prec:modelAs prec:RDFStarUnique .
Expected result
:node1 :edge :node2 .
<< :node1 :edge :node2 >> rdf:subject "A Subject" .
Probable bugged result
:node1 :edge :node2 .
"A Subject" :edge :node2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.