You can use STRAFTER (tested with 4.4.1)
Holger
On 5/21/2014 7:06, Michel Bohms wrote:
In my query:
PREFIX dcterms: <http://purl.org/dc/terms#>
PREFIX depc: <http://www.modelservers.org/public/ontologies/depc.ttl#
<http://www.modelservers.org/public/ontologies/depc.ttl#>>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#
<http://www.w3.org/2005/xpath-functions#>>
CONSTRUCT {
?eNeighbourhood depc:hasComplexProperty ?neighbourhoodprofile.
?neighbourhoodprofile a depc:ProfileProperty;
depc:hasTimePointProperty [
a depc:TimePointProperty;
depc:timeStamp ?timeStamp;
depc::e-Production ?eProduction1
]
}
WHERE
{
SELECT ?eNeighbourhood ?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(fn:concat("
http://www.modelservers.org/public/ontologies/
<http://www.modelservers.org/public/ontologies/>",
fn:substring-after(str(?eNeighbourhood),"_"))) AS ?test)
}
GROUP BY ?timeStamp ?eNeighbourhood
}
I get an error for fn:substring-after
it says this one is not implemented..is there an alternative that IS
implemented?
thx a lot, Michel
--
-- 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
[email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected]
<mailto:[email protected]>.
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
[email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.