Michel;  Yes, the type should be float (for both, actually) and the sum aggregate will default to float if any of the values are floating point (see SPARQL 1.1 specs for more).

In terms of the fully qualified URI, chances are that depc:e-Production does not have a type triple.  If you add a new property, depc:e-Production, to the model(datatype, range of xsd:float), it will appear with the qname.

-- Scott

On 5/27/2014, 10:17 AM, Bohms, H.M. (Michel) wrote:

Asserted it looks like:

 

 

 

When infered with spin I get:

 

 

With query:

 

 

CONSTRUCT {

?eNeighbourhood depc:hasComplexProperty ?ppuri .

?ppuri    a depc:ProfileProperty;

              depc:valueKind "Nominal"^^xsd:string;

              depc:valueOrigin "Derived"^^xsd:string;

              depc:valueType "Expected"^^xsd:string;

              depc:hasTimePointProperty ?tpuri .

             ?tpuri a depc:TimePointProperty;

                       depc:timeStamp ?timeStamp;

                                             depc::e-Production ?eProduction1.

}

WHERE

{

SELECT  ?eNeighbourhood  ?ppuri ?tpuri ?timeStamp ((SUM(?eProduction2)) AS ?eProduction1)

        WHERE {

                                            ?eNeighbourhood a depc:E-Neighbourhood .

            ?eNeighbourhood dcterms:hasPart ?part .

            ?part depc:hasComplexProperty ?ProfileProperty2 .

            ?ProfileProperty2 depc:hasTimePointProperty ?TimePointProperty2 .

            ?TimePointProperty2 depc:e-Production ?eProduction2 .

            ?TimePointProperty2 depc:timeStamp ?timeStamp .

            BIND (IRI (concat("http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#ProfileProperty_N", strafter(str(?eNeighbourhood),"_"), "-P")) AS ?ppuri) .

            BIND (IRI (concat("http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#TimePointProperty_N", strafter(str(?eNeighbourhood),"_"), "-P",str(hours(?timeStamp)))) AS ?tpuri) .

        }

        GROUP BY ?timeStamp ?eNeighbourhood  ?ppuri ?tpuri

 

}

 

Guess its caused by the float returning SUM function?

(even then: why this full uri here and nopt the name only)

 

Thx Michel

 

 

Dr. ir. H.M. (Michel) Bohms
Sr. Research Scientist
Structural Reliability

T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
michel.bo...@tno.nl

Location

 

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.

 

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to