On Fri, Feb 8, 2013 at 8:29 AM, Andy Seaborne <[email protected]> wrote:
> On 07/02/13 21:31, Adrian Gschwend wrote:
>>
>> On 07.02.13 19:22, Andy Seaborne wrote:
>>
>> Hi Andy,
>>
>>> Can't test but my guess is that the some of the ?munidstr coming back
>>> from DBpedia are not valid integer strings.
>>
>>
>> ah didn't think of that.
>>
>>> That makes:
>>>
>>>      BIND(xsd:int(str(?munidstr)) AS ?munid)
>>>
>>> leave ?munid unbound so the rest of the query is unconnected with the
>>> SERVICE part.  That will mix up the data.
>>
>>
>> Could this already be the case if some values are strings and some are
>> indeed integers? IIRC DBpedia was not really constant on this particular
>> predicate.
>
>
> No - ints cast to ints is legal.
>
> The casting in ARQ is quite generous - any lexical form that is a legal
> integer works.  This is more than the standard (XQuery F&O requires);
>
> But no white space, no non-numbers, no decimal separators, no thousands
> separators.
>
> Signified says in a comment on that answers.semanticweb.com question that
> Samstagern has a non-integer value.
>
> DBpedia is down, looks like the cluster has lost a machine (careless!), so I
> can't find out what it is.
>
>         Andy
>
>>
>> cu
>>
>> Adrian
>>
>

A simple check would be to get a count of ?munidstr where a filter is
applied that limits the results to integer value types and compare
that to the count without the filter.  I recall having to use a filter
to remove dirty decimal data.


-- 
I like: Like Like - The likeliest place on the web
Identity: https://www.identify.nu/[email protected]
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to