Class ResourceShapeParserJsonObject

java.lang.Object
org.aksw.jena_sparql_api.shape.ResourceShapeParserJsonObject

public class ResourceShapeParserJsonObject extends Object
shape: true shape: 'rdfs:label' shape: ['rdf:type', 'rdfs:label'] shape: { 'rdf:type': true # Fetch rdf:type triples together with all outgoing triples of rdf:type } shape: { 'rdf:type': false # Fetch rdf:type triples, but no further reachable triples } shape: { '-rdf:type': ... # Prefix with '-' to navigate in inverse direction (should replace '&gt' which we used so far) } shape: { '~?p = rdf:type && langMatches(lang(?o), "en")' // Prefix with ~ to use a sparql expression } Special attributes start with '$': $filter: Set a concept for filtering the set of reached resources note: ['rdf:type'] is equivalent to { 'rdf:type': false } shape: { 'rdf:type': { $filter: '?s | ?s a owl:Class' // Only fetch types that are owl:Classes (i.e. exclude e.g. SKOS concepts), $predicates: ['rdfs:label'] } } Macro symbols: shape: '@spatial' At @spatial will extended with its definition.
Author:
raven