---
to: generated/user.rs
rdf:
  - ontology.ttl
sparql:
  user_class: |
    PREFIX ex: <http://example.org/maturity-matrix/level1#>
    SELECT ?property ?label WHERE {
      ?property rdfs:domain ex:User .
      ?property rdfs:label ?label .
    }
    ORDER BY ?property
---

// Level 1: Simple Generated File
// AUTO-GENERATED from ontology.ttl - DO NOT EDIT

pub struct User {
{% for row in sparql_results.user_class %}
    pub {{ row.property | split("/") | last | snake_case }}: String,
{% endfor %}
}

impl User {
    pub fn new(name: String, email: String) -> Self {
        Self {
            user_name: name,
            user_email: email,
        }
    }
}

