Commit 5ca018cf authored by Andrei Popescu's avatar Andrei Popescu
Browse files

recursive method completed; removed old way;

now creating the config file for GBFS.
parent f45db913
Pipeline #54966 failed with stage
in 22 seconds
@prefix sdm: <https://smart-data-models.github.io/dataModel.Energy/ThreePhaseAcMeasurement/terms>.
@prefix schema: <http://schema.org/#>.
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix jsonsc: <https://www.w3.org/2019/wot/json-schema#>.
@prefix airs: <https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#>.
@prefix vso: <http://purl.org/vso/ns#>.
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>.
<https://w3id.org/sdm/terms/allOf> rdf:type foaf:Document;
rdfs:comment "An electrical measurement from a system that uses three phase alternating current."@en;
vann:preferredNamespaceUri "https://w3id.org/sdm/terms/allOf#".
<https://w3id.org/sdm/terms/> dcterms:creator <https://pietercolpaert.be/#me>, <https://www.linkedin.com/in/andrei-popescu/>.
sdm:refDevice rdf:type rdf:Property;
rdfs:range sdm:RefDevice;
rdfs:label "Relationship. Device(s) used to obtain the measurement."@en.
sdm:refTargetDevice rdf:type rdf:Property;
rdfs:range sdm:RefTargetDevice;
rdfs:label "Relationship. Device(s) for which the measurement was taken."@en.
sdm:dateEnergyMeteringStarted rdfs:range xsd:string;
rdfs:label "Property. Model:'http://schema.org/DateTime'. The starting date for metering energy."@en.
sdm:totalActiveEnergyImport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilowatt hour (kWh)'. Total energy imported i.e. consumed since metering started (since `dateEnergyMeteringStarted`)."@en.
sdm:totalReactiveEnergyImport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilovolt-ampere-reactive-hour (kVArh)'. Total energy imported i.e. consumed (with regards to fundamental frequency reactive power) since the metering start date (`dateEnergyMeteringStarted`)"@en.
sdm:totalApparentEnergyImport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilovolt-ampere-hour (kVAh)'. Total energy imported i.e. consumed (with regards to apparent power) since the metering start date (`dateEnergyMeteringStarted`)"@en.
sdm:totalActiveEnergyExport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilowatt hour (kWh)'. Total energy exported since metering started (since `dateEnergyMeteringStarted`)."@en.
sdm:totalReactiveEnergyExport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilovolt-ampere-reactive-hour (kVArh)'. Total fundamental frequency reactive energy exported since metering started (since `dateEnergyMeteringStarted`)."@en.
sdm:totalApparentEnergyExport rdfs:range xsd:integer;
rdfs:label "Property. Model:'https://schema.org/Number'. Units:'kilovolt-ampere-reactive-hour (kVArh)'. Total energy exported (with regards to apparent power) since the metering start date (`dateEnergyMeteringStarted`)"@en.
sdm:frequency rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'Hertz (Hz)'. The frequency of the circuit."@en.
sdm:totalActivePower rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'watt (W)'. Active power consumed (counting all phases)"@en.
sdm:totalReactivePower rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'volt-ampere-reactive (VAr)'. Reactive power consumed (counting all phases)"@en.
sdm:totalApparentPower rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'volt-ampere (VA)'. Apparent power consumed (counting all phases)."@en.
sdm:activeEnergyImport rdf:type rdf:Property;
rdfs:range sdm:ActiveEnergyImport;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilowatt hour (kWh)'. Active energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:L1 rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilowatt hour (kWh)'. Active energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:L2 rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilowatt hour (kWh)'. Active energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:L3 rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilowatt hour (kWh)'. Active energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:reactiveEnergyImport rdf:type rdf:Property;
rdfs:range sdm:ReactiveEnergyImport;
rdfs:label "Property. Model:'kilovolt-ampere-reactive-hour (kVArh)'. Units:'http://schema.org/StructuredValue'. Fundamental frequency reactive energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:apparentEnergyImport rdf:type rdf:Property;
rdfs:range sdm:ApparentEnergyImport;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilovolt-ampere-hour (kVAh)'. Apparent energy imported i.e. consumed per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:activeEnergyExport rdf:type rdf:Property;
rdfs:range sdm:ActiveEnergyExport;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilowatt hour (kWh)'. Active energy exported per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:reactiveEnergyExport rdf:type rdf:Property;
rdfs:range sdm:ReactiveEnergyExport;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilovolt-ampere-reactive-hour (kVArh)'. Fundamental frequency reactive energy exported per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:apparentEnergyExport rdf:type rdf:Property;
rdfs:range sdm:ApparentEnergyExport;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'kilovolt-ampere-hour (kVAh)'. Apparent energy exported per phase since the metering start date. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:activePower rdf:type rdf:Property;
rdfs:range sdm:ActivePower;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'watt (W)'.Active power consumed per phase. The actual values will beconveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3. "@en.
sdm:reactivePower rdf:type rdf:Property;
rdfs:range sdm:ReactivePower;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'volts-ampere-reactive (VAr)'. Fundamental frequency reactive power. The actual values will be conveyed by subproperties whose names will be equal to the name of each of the alternating current phases: L1, L2, L3."@en.
sdm:apparentPower rdf:type rdf:Property;
rdfs:range sdm:ApparentPower;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'volt-ampere (VA)'. Apparent power consumed per phase. The actual values will be conveyed by subproperties which names will be equal to the name of each of the alternating current phases: L1, L2, L3"@en.
sdm:totalPowerFactor rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'-1 to +1'. Power factor including all phases"@en.
sdm:powerFactor rdf:type rdf:Property;
rdfs:range sdm:PowerFactor;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'-1 to +1'. Power factor for each phase. The actual values will be conveyed by one subproperty per alternating current phase: L1, L2 and L3"@en.
sdm:totalDisplacementPowerFactor rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/Number'. Units:'-1 to +1'. Displacement power factor including all phases. The quantity is based on the fundamental frequency of the system"@en.
sdm:displacementPowerFactor rdf:type rdf:Property;
rdfs:range sdm:DisplacementPowerFactor;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'-1 to +1'. Displacement power factor for each phase. The quantity is based on the fundamental frequency of the system. The actual values will be conveyed by one subproperty per alternating current phase: L1, L2 and L3"@en.
sdm:current rdf:type rdf:Property;
rdfs:range sdm:Current;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'Ampers (A)'. Electrical current. The actual values will be conveyed by one subproperty per alternating current phase and the neutral wire: L1, L2, L3 and N."@en.
sdm:N rdfs:range xsd:integer;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'Ampers (A)'. Electrical current. The actual values will be conveyed by one subproperty per alternating current phase and the neutral wire: L1, L2, L3 and N."@en.
sdm:phaseVoltage rdf:type rdf:Property;
rdfs:range sdm:PhaseVoltage;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'Volts (V)'. The voltage between each phase and neutral conductor. The actual values will be conveyed by one subproperty per alternating current phase: L1, L2 and L3"@en.
sdm:phaseToPhaseVoltage rdf:type rdf:Property;
rdfs:range sdm:PhaseToPhaseVoltage;
rdfs:label "Property. Model:'(http://schema.org/StructuredValue'. Units:'Volts (V)'. Voltage between phases. A value for each phase pair: phases 1 and 2 (L12), phases 2 and 3 (L32), phases 3 and 1 (L31)."@en.
sdm:L12 rdfs:range xsd:integer;
rdfs:label "Property. Model:'(http://schema.org/StructuredValue'. Units:'Volts (V)'. Voltage between phases. A value for each phase pair: phases 1 and 2 (L12), phases 2 and 3 (L32), phases 3 and 1 (L31)."@en.
sdm:L23 rdfs:range xsd:integer;
rdfs:label "Property. Model:'(http://schema.org/StructuredValue'. Units:'Volts (V)'. Voltage between phases. A value for each phase pair: phases 1 and 2 (L12), phases 2 and 3 (L32), phases 3 and 1 (L31)."@en.
sdm:L31 rdfs:range xsd:integer;
rdfs:label "Property. Model:'(http://schema.org/StructuredValue'. Units:'Volts (V)'. Voltage between phases. A value for each phase pair: phases 1 and 2 (L12), phases 2 and 3 (L32), phases 3 and 1 (L31)."@en.
sdm:thdVoltage rdf:type rdf:Property;
rdfs:range sdm:ThdVoltage;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'0 to 1'. Total harmonic distortion of voltage for each phase. The actual values will be conveyed by one subproperty per alternating current phase: L1, L2 and L3"@en.
sdm:thdCurrent rdf:type rdf:Property;
rdfs:range sdm:ThdCurrent;
rdfs:label "Property. Model:'http://schema.org/StructuredValue'. Units:'0 to 1'. Total harmonic distortion of electrical current. The actual values will be conveyed by one subproperty per alternating current phase: L1, L2 and L3"@en.
undefined<https://w3id.org/sdm/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/sdm/terms/>;
sh:property [
sh:path <type>;
sh:minCount 1;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <refDevice>;
sh:maxCount 1;
];
sh:property [
sh:path <refTargetDevice>;
sh:maxCount 1;
];
sh:property [
sh:path <dateEnergyMeteringStarted>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <totalActiveEnergyImport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalReactiveEnergyImport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalApparentEnergyImport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalActiveEnergyExport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalReactiveEnergyExport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalApparentEnergyExport>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <frequency>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalActivePower>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalReactivePower>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalApparentPower>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <activeEnergyImport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <reactiveEnergyImport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <apparentEnergyImport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <activeEnergyExport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <reactiveEnergyExport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <apparentEnergyExport>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <activePower>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <reactivePower>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <apparentPower>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalPowerFactor>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <powerFactor>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <totalDisplacementPowerFactor>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <displacementPowerFactor>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <current>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <N>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <phaseVoltage>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <phaseToPhaseVoltage>;
sh:maxCount 1;
];
sh:property [
sh:path <L12>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L23>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L31>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <thdVoltage>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <thdCurrent>;
sh:maxCount 1;
];
sh:property [
sh:path <L1>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L2>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <L3>;
sh:maxCount 1;
sh:datatype xsd:float;
];
This diff is collapsed.
This diff is collapsed.
"use strict";
exports.__esModule = true;
exports.JsonProcessor = void 0;
var rdfTools_1 = require("./rdfTools");
var shaclTools_1 = require("./shaclTools");
var N3 = require('n3');
var DataFactory = N3.DataFactory;
var namedNode = DataFactory.namedNode, literal = DataFactory.literal, defaultGraph = DataFactory.defaultGraph, quad = DataFactory.quad;
var JsonProcessor = /** @class */ (function () {
function JsonProcessor() {
}
JsonProcessor.initialise = function (source, mainObj) {
// RDF Vocabulary ------------------
// Getting configuration elements
for (var object in this.config.jsonObjects) {
this.rdf_json_objects.set(object, this.config.jsonObjects[object]);
}
for (var object in this.config.terms) {
this.termMap.set(object, this.config.terms[object]);
}
this.writer = new N3.Writer({ prefixes: this.config.prefixes });
// Setting up basic info
this.jsonSource = source; // Needed when creating a ShaclShape object
this.jsonSchema = require(source);
this.mainObject = mainObj;
this.mainJsonObject = this.getJsonObject(this.mainObject);
this.prefix = this.config.prefix;
// Set path (TODO: set from confi.json)
this.path = this.jsonSchema[this.mainJsonObject];
this.properties = this.path[2].properties; // Path to the properties of the main object
//
this.writer.addQuad(rdfTools_1.RDFTools.node_node_node('https://w3id.org/sdm/terms/' + this.mainJsonObject, 'rdf:type', 'foaf:Document'));
this.writer.addQuad(rdfTools_1.RDFTools.node_node_literal('https://w3id.org/sdm/terms/' + this.mainJsonObject, 'rdfs:comment', this.jsonSchema.description));
this.writer.addQuad(rdfTools_1.RDFTools.node_node_literal('https://w3id.org/sdm/terms/' + this.mainJsonObject, 'vann:preferredNamespaceUri', 'https://w3id.org/sdm/terms/' + this.mainJsonObject + '#'));
for (var creator in this.config.creators) {
console.log("creator", creator);
this.creators.push(creator);
this.writer.addQuad(rdfTools_1.RDFTools.node_node_node('https://w3id.org/sdm/terms/', 'dcterms:creator', this.config.creators[creator]));
}
// Shacl shape -------------------
// Setting a map containing < requiredProp, existingTermForRequiredProp>.
this.shaclRoot = this.config.shaclRoot;
for (var _i = 0, _a = this.jsonSchema.required; _i < _a.length; _i++) {
var requiredProp = _a[_i];
if (this.termMap.has(requiredProp) != false) {
this.requiredMap.set(requiredProp.toString(), this.termMap.get(requiredProp.toString()));
}
else {
this.requiredMap.set(requiredProp.toString(), requiredProp.toString());
}
}
for (var object in this.config.shaclTargets) {
this.targets.set(object, this.config.shaclTargets[object]);
}
this.shaclTargetClass = JsonProcessor.getShaclTarget(mainObj);
// Create a ShaclShape object and insert the first entries
this.shaclFileText = this.shaclFileText + shaclTools_1.ShaclTools.shapeShaclRoot(this.shaclRoot);
this.shaclFileText = this.shaclFileText + 'sh:targetClass ' + this.shaclTargetClass + '; \n';
};
JsonProcessor.callJsonTraverseRecursive = function () {
var depth = 0;
for (var prop in this.properties) {
this.mainJsonObject = JsonProcessor.getJsonObject(this.prefix + ':' + rdfTools_1.RDFTools.capitalizeFirstLetter(prop));
this.jsonTraverseRecursive(this.writer, depth, this.path, this.mainJsonObject, prop);
}
;
return;
};
JsonProcessor.jsonTraverseRecursive = function (writer, depth, path, mainJsonObject, prop) {