Skip to content
Femke edited this page Oct 7, 2019 · 3 revisions

Contents

Util

Files, constants and functions that are used throughout the project.

  • calculations.js defines some methods to calculate distances and coordinates for drawing the Relationships
  • constants.js defines multiple constants used throughout the project.
  • constraintSelector.js get the constraints of the given language.
  • emptyState.js defines an empty state to use in the UndoRedoMixin.
  • examples.js lists a number of examples in both SHACL and the internal model for testing purposes.
  • getNonOverlappingCoordinates.js calculates a set of coordinates so that a newly added Shape will not overlap with the existing ones.
  • index.js contains some miscellaneous methods.
  • resolveRDFSJTerm.js used to resolve RDFS JS terms.
  • strings.js contains some general string operations.
  • traverse.js helper function to traverse over an object and apply a function.
  • urlParser.js contains methods regarding URL parsing and matching.

Enums

Files with enum types.

  • extensionToFormat.js maps the different file extensions to their HTML file format.
  • isoLangs.js maps the ISO language codes to their name and native name.
  • languages.js maps the different shape constraint languages to their string representation.
  • ValueTypes.js maps the different terms to their value type.
  • xmlDataTypes.js maps the different XML data types to their IRI.

SHACL

SHACL-specific files and objects.

  • shacl.js contains the SHACL specification.
  • shaclConstraints.js contains the SHACL constraint specifications. Groups the constraints by type and defines methods to use in the PredicateModal
  • vocabulary.js creates a SHACL vocabulary.

Config

Configuration files.

  • konvaConfig.js contains configuration objects for the different components that are visualized in the Konva canvas.
Clone this wiki locally