Package org.aksw.jena_sparql_api.views
Class SparqlifyConstants
java.lang.Object
org.aksw.jena_sparql_api.views.SparqlifyConstants
Problem:
Create V1 { ?s label ?o2 . } ?s = Uri(id); ?o1 = Uri(uri); Select id,
concat("abc", u) as uri From tab1;
Create V2 { ?s label ?o2 . } ?s = Uri(id); ?o2 = PlainLiteral(name); Select
id, name From tab2;
Select { ?x label ?y }
The problem is, that ?y is mapped to both o1 and o2. However, the layout
differs (o1 is a Uri, o2 is a Plain Literal).
Resultset formats:
a) A separate column for each possible part of an RDF variable. s_type
s_value, o_type, o_value, o_lang, o_datatype, ...
b) A column indicating the source view (bit-pattern)
c) Each variable may be created from multiple columns ?s
Select view_1_id, view_5_id ...
d)
Create View Products { ?s a Product . ?s rdfs:label ?name . ?s x:code ?code .
} With ?s = Uri(Concat("http://", ?id)) ?name = ?code = Select id, name, code
From product;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final org.apache.jena.sparql.expr.NodeValuestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.apache.jena.sparql.expr.FunctionLabel -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
vectorLabel
public static final org.apache.jena.sparql.expr.FunctionLabel vectorLabel -
blankNodeLabel
- See Also:
-
uriLabel
- See Also:
-
rdfTermLabel
- See Also:
-
plainLiteralLabel
- See Also:
-
typedLiteralLabel
- See Also:
-
urlDecode
- See Also:
-
urlEncode
- See Also:
-
rightPadLabel
- See Also:
-
numericTypeLabel
- See Also:
-
nvTypeError
public static final org.apache.jena.sparql.expr.NodeValue nvTypeError
-
-
Constructor Details
-
SparqlifyConstants
public SparqlifyConstants()
-