Re: [Tracker] datatype management in TrackerSparqlBuilder



On Thu, 2009-11-26 at 21:34 +0100, Roberto -MadBob- Guido wrote:
At the actual stage queries are built token by token, with specific
functions to append strings, numbers, dates and other datatypes
depending on the predicate.

For the happiness of search engine crawlers and people which will land
on this thread: it was suggested to me it is possible to directly ask
Tracker about properties mapped on the running ontology, with a query
like:

SELECT ?p ?d ?r
    WHERE { ?p a rdf:Property ; rdfs:domain ?d ; rdfs:range ?r }

Quite obvious, after all...

Anyway, my previous request still remain in place: given the method to
automatically guess datatype for a named property, it would be quite
convenient expose in the TrackerSparqlBuilder's API such a function and
avoid manual implementation for all developers needing this level of
abstraction.

-- 
Roberto -MadBob- Guido
http://claimid.com/madbob





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]