What could be wrong here?
Empty bpsStartKilometring in query result….
The data is there (not always but I put ‘optional’).
Why is data like 1250 from row example being an integer not shown in query result?
Thx for advice,
Michel
Ps
Data was imported from excel via standard tbc-import resulting in:
lam:bpsStartKilometrering
rdf:type owl:DatatypeProperty ;
tables:columnIndex "12"^^xsd:int ;
rdfs:domain lam:MonsterLaag ;
rdfs:label "bpsStartKilometrering" ;
rdfs:range xsd:integer ;
.
|
On 6 Apr 2023, at 10:55 am, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:<image001.png>
What could be wrong here?Empty bpsStartKilometring in query result….The data is there (not always but I put ‘optional’).Why is data like 1250 from row example being an integer not shown in query result?Thx for advice,MichelPsData was imported from excel via standard tbc-import resulting in:lam:bpsStartKilometreringrdf:type owl:DatatypeProperty ;tables:columnIndex "12"^^xsd:int ;rdfs:domain lam:MonsterLaag ;rdfs:label "bpsStartKilometrering" ;rdfs:range xsd:integer ;.
Michel Böhms
Data ScientistDigital Built Environment (DBE)
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.
--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1a28bab22eec4ef5a1d3fc6eefa03b1f%40tno.nl.
Feeling embarrassed 😊
But thx!
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/A200C653-4E67-499B-B5E4-C79D4BA99408%40topquadrant.com.
Just fyi
This error was in the very short form of my issue
The actual issue of ‘no results’ was:
Having all the filters active resulted in zero items 😊
So instead of x=y we have to start constraining a bit more flex like |x-y| < X (joining records that are close in location not exact)
In this case:
SELECT ?Specificatie ?Laag ?Meting ?bpsStartKilometrering ?bpsStartKilometrering_0
WHERE {
?Specificatie rdf:type lam:OntwerpSpecificatie .
?Specificatie lam:bpsWeg ?bpsWeg .
?Specificatie lam:mengselVoldoetAanDeEisenVoor ?mengselVoldoetAanDeEisenVoor .
?Laag rdf:type lam:MonsterLaag .
?Laag lam:bpsWeg_0 ?bpsWeg_0 .
?Laag lam:mengselType ?mengselType .
OPTIONAL { ?Laag lam:bpsStartKilometrering ?bpsStartKilometrering } .
?Meting rdf:type lam:MonitoringMeting .
?Meting lam:bpsWeg_1 ?bpsWeg_1 .
?Meting lam:surfaceOmschrijving ?surfaceOmschrijving .
OPTIONAL { ?Meting lam:bpsStartKilometrering_0 ?bpsStartKilometrering_0 } .
FILTER (?bpsWeg = ?bpsWeg_0) .
FILTER (?bpsWeg = ?bpsWeg_1) .
FILTER (?mengselVoldoetAanDeEisenVoor = ?mengselType) .
FILTER (?mengselVoldoetAanDeEisenVoor = ?surfaceOmschrijving) .
FILTER (abs(?bpsStartKilometrering - ?bpsStartKilometrering_0) < 50) .
}
This now works fine, we can choose between many less precise or less more precise matches…
Gr Michel
From: topbrai...@googlegroups.com <topbrai...@googlegroups.com>
On Behalf Of Holger Knublauch
Sent: donderdag 6 april 2023 12:08
To: topbrai...@googlegroups.com
Subject: Re: [topbraid-users] unexpected query result
Try SELECT * - I think the variable names are spelled inconsistently.
.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/A200C653-4E67-499B-B5E4-C79D4BA99408%40topquadrant.com.