Comments (1)
Technically, every operation
processed by the TableHandler
generates a SPARQL Update query. Even operations with data
/template
blocks are used to create update queries (wrapped by INSERT DATA { .* }
for adding triples to the base graph (blank, in the current implementation):
operations:
-
data: |-
bldg:{VAV name} brick:hasPoint bldg:{temperature sensor} .
bldg:{VAV name} brick:hasPoint bldg:{temperature setpoint} .
But I think it makes sense to let the data
and template
(Jinja) blocks be specifically for row-wise insertions (exclusive to TableHandler
and its subclasses?) and use the query
blocks for performing queries (one-time, like Handler
does) after the tabular insertion is complete.
py-brickschema/tests/data/brickify/jinja2/template.yml
Lines 12 to 16 in 8d1740f
As a related crazy idea, maybe we add a way for Brickify to load some sort of 'base' graph first?
I didn't think of it at the time but it seems like having non-blank base graphs preloaded could be really useful.
from py-brickschema.
Related Issues (20)
- PersistentGraph/VersionedGraph hard-code parameters for create and identifier
- Graph.validate() fails when Brick ontology is preloaded to the graph HOT 1
- Move to SQLalchemy 2.0+
- newbie tips
- [Question] Has there been an unintentional bump in ontology data shipped with the library for Brickschema v1.3.0?
- `load_file()` returns an `[Errno 22] Invalid argument` error HOT 2
- Atribute error: module 'brickschema' has no attribute 'Graph' HOT 1
- Question: How could I separate between between ontology, site and inferred data? HOT 5
- Warnings on import HOT 2
- Brickify help usage and operations HOT 7
- Tagset Inference misses some Classes HOT 1
- Brickify output empty. HOT 2
- most_likely_tagsets should return classes, not strings
- Support Pulling Different Development Brick Versions
- Incorporate versioned RDF
- jijna update needed (will address nightly build failures)
- py-brickschema and Oxigraph HOT 4
- `pytest` should not be a direct dependency HOT 6
- Issue with VersionedGraphCollection undoing/redoing "timelines" HOT 2
- VersionedGraphCollection "Redo" Doesn't Bring Changes Back to Same Graph Name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-brickschema.