Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PropertyMapper::printPropertyMapper
// https://github.com/BruJu/PREC/blob/master/prec3/vocabulary-reader.js
// Developed for debug purpose
function PropertyMapper::printPropertyMapper() {
console.error("PropertyMapper {");
console.error(` iri:`);
console.error(this.iri);
console.error(" description node:");
console.error(this.descriptionNode);
console.error(" src:");
console.error(PrecUtils.badToString(this.getTransformationSource(), 4));
console.error(" conditions: " + this.conditions.length);
for (let condition of this.conditions) {
console.error(PrecUtils.badToString(condition, 4));
console.error("");
}
console.error(" dst:");
console.error(PrecUtils.badToString(this.getTransformationTarget(), 4));
console.error("}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment