W3C home > Mailing lists > Public > semantic-web@w3.org > November 2012

Re: Counting datatypes per property

From: Martin Voigt <martin.voigt@tu-dresden.de>
Date: Thu, 08 Nov 2012 12:16:21 +0100
Message-ID: <509B9485.6040501@tu-dresden.de>
To: Heiko Paulheim <paulheim@ke.tu-darmstadt.de>
CC: semantic-web@w3.org, Dominik Wienand <dominik.wienand@online.de>
Hi Heiko,

we use the following simple SPARQL query which works fine so far.

SELECT ?r (COUNT(?r) AS ?num)
WHERE {
	?x a owl:DatatypeProperty ;
		rdfs:range ?r .
}
GROUP BY ?r

Where is the DATATYPE function defined?

Regards,
Martin

Am 08.11.2012 11:43, schrieb Heiko Paulheim:
> Hi all,
>
> we are trying to analyze datatype properties by the datatype they use.
> Our first idea was to use a simple SPARQL query per property, however,
> the following does not do what I would expect it to do:
>
> SELECT COUNT(?x) DATATYPE(?y) WHERE {?x dbpprop:utcOffset ?y}
>
> This query does not group all entries with, e.g.,
> <http://www.w3.org/2001/XMLSchema#int> in one row. Why not? What am I
> doing wrong here?
>
> Best regards,
> Heiko
>
>

-- 
-----------------------------------
Dipl.-Medieninf. Martin Voigt
Wissenschaftlicher Mitarbeiter

Technische Universität Dresden
Fakultät Informatik
Institut für Software- und Multimediatechnik
Lehrstuhl Multimediatechnik
01062 Dresden

Tel.: +49 (351) 463-38037
Fax : +49 (351) 463-38518
Web: http://mmt.inf.tu-dresden.de/voigt
E-Mail: martin.voigt@tu-dresden.de
Skype: m.voigt.1982
Received on Thursday, 8 November 2012 18:40:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:52 GMT