Skip to content
Snippets Groups Projects
Commit dd94c3ea authored by Valerian Wintner's avatar Valerian Wintner
Browse files

Add shape map.

parent 1e6e4d33
No related branches found
No related tags found
1 merge request!16Kristina report
File added
......@@ -199,7 +199,16 @@ Given a \emph{RDF} graph and a set of constraints, the validation consists of ve
For the implementation of this process, an \emph{RDF} subgraph and \emph{Shex} constraints are required as input. Then, we use this to generate a \emph{shape map}, which contains all of the types that need to be validated. For the actual validation, the \emph{ShExValidator} provided by the \emph{Jena} library was used. \todo{add reference to Jena library here?} The validator requires a set of constraints defined in valid \emph{ShEx} syntax and a \emph{shape map}.
\Danielle{the following is repetetive, should be removed.}
The \emph{shape map} describes which types of nodes need to be validated against which \emph{ShEx} constraint definitions.
The \emph{shape map} describes which types of nodes need to be validated against which \emph{ShEx} constraint definitions. \Valerian{We construct the shape map depending on the types available in the subgraph. See Figure \ref{fig:shape_map} for an example.}
\begin{figure}
\centering
\lstinputlisting{code_snippets/RiverBodyOfWater_RiverBodyOfWater_null.shapemap}
\caption{The shape map used for validating the full subgraph starting with RiverBodyOfWater-nodes.}
\label{fig:shape_map}
\end{figure}
\missingfigure{add picture/code snipped of shapeMap}
......
{FOCUS a <https://schema.org/GeoCoordinates>}@<https://schema.org/GeoCoordinates>,
{FOCUS a <https://schema.org/RiverBodyOfWater>}@<https://schema.org/RiverBodyOfWater>,
{FOCUS a <https://schema.org/Service>}@<https://schema.org/Service>,
{FOCUS a <https://schema.org/Canal>}@<https://schema.org/Canal>,
{FOCUS a <https://schema.org/AdministrativeArea>}@<https://schema.org/AdministrativeArea>,
{FOCUS a <https://schema.org/Map>}@<https://schema.org/Map>,
{FOCUS a <https://schema.org/Place>}@<https://schema.org/Place>,
{FOCUS a <https://schema.org/EducationalOrganization>}@<https://schema.org/EducationalOrganization>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment