Package org.aksw.jena_sparql_api.shape
Class ResourceShapeParserJsonObject
java.lang.Object
org.aksw.jena_sparql_api.shape.ResourceShapeParserJsonObject
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 '>' 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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceShapeParserJsonObject(org.apache.jena.shared.PrefixMapping prefixMapping) -
Method Summary
Modifier and TypeMethodDescriptionparse(Object obj, ResourceShapeBuilder builder) static StepRelationString must be of format [-] [~] str -: If present, assume inverse direction ~: If present, str is assumed to be a SPARQL expression.
-
Field Details
-
geo
- See Also:
-
geom
- See Also:
-
ogc
- See Also:
-
wgs84
- See Also:
-
wgs84geometry
- See Also:
-
geoSparqlLgd
- See Also:
-
-
Constructor Details
-
Method Details
-
parse
-
parse