In RDF, I can have an entity that is bound by a single property to multiple literal values. Those values can also be typed to add clarity.
:dumpTruck :weight "heavy"^^xsd:string .
:dumpTruck :weight "36000"^^xsd:integer .
In SPARQL, I can query for just they type I want
SELECT ?w
WHERE
{ :dumpTruck :weight ?w
FILTER ( datatype(?w) = xsd:integer )
}
Is there something like getStatement in RDF4J that can be constrained by datatype like that?