Saturday 15 September 2012

Semantic web, datatypes and sparql. (Is the return type arbitrarily) -


I have typed the semantic web dynamically! For example, I am inquiring about birthdays and I have so far received xsd: Integer s, however, now I am going to inquire for a different person when a xsd: date How do you control this problem when used from a statically typed language?

According to section from Dibepedia Wiki, dbpprop namespace ( http : //dbpedia.org/property//s/ >>) Triple is very dirty using properties:

You only use the infobox dataset, if all of your application is in Wikipedia Full coverage of assets is required and you are ready to accept relatively noisy data.

You will find more relevant data dbpedia-owl ( http://dbpedia.org/ontology/ ) namespace:

Examples of examples of infobox autology are too high For example, if you hold 20 birthdays using dbprop: dateOfBirth , then you will get integers and dates: / P> >

  choose different? Date WHERE {? X dbpprop: dateOfBirth? Date} LIMIT 10   

  Date "1908" ^ ^ & lt; Http: //www.w3.org/2001/XMLSchema#int> 1946-03-14 1951-06-15 "1984" ^^ & lt; Http: //www.w3.org/2001/XMLSchema#int> 1878-11-09 "24" ^^ & lt; Http: //www.w3.org/2001/XMLSchema#int> "21" ^^ & LT; Http: //www.w3.org/2001/XMLSchema#int> "2" ^^ & LT; Http: //www.w3.org/2001/XMLSchema#int> "14" ^^ & LT; Http: //www.w3.org/2001/XMLSchema#int> Using 1922-02-10   

DBPDA-OWL: Birthday Give more consistent results:

  Choose different dates WHERE {? X dbpedia-owl: birthdate? Date} LIMIT 10   

  Date 0001-01-01 0001-03-12 0005-02- 27 0012-08-31 0012-12-07 0015-09-24 0016-09-16 0019-05-26 0019-11-25 0030-11-08   

He said that , The data still has some noise, for example, it is a query that tells us what is the datatype of the object of dbpedia-owl: birthdate , and each For the type, the number of times is dbpedia-owl: birthdate is an object of that type, and an example object of that type is the object of dbpedia-owl: birthdate Appears in appearance.

  SELECT? As Datetype (COUNT (? Date)? NumberOfType) (as the sample (? Date)? ExampleDate) WHERE {[] dbpedia-owl: birthdate? Date BIND (as Datatype (Date)? Datetype)} by Group? Datetype ORDER BY DESC (? NumberOfType)   

  Data type number of type type example http: // www .w3.org / 2001 / XMLSchema # date 608771 0001-01-01 http://www.w3.org/2001/XMLSchema#gMonthDay 1185 "--02-29" ^^ & LT; Http: //www.w3.org/2001/XMLSchema#gMonthDay> Http://www.w3.org/2001/XMLSchema#string246 "--01-01" ^^ & lt; Http: //www.w3.org/2001/XMLSchema#gMonthDay>   

Most dates are xsd: date s I'm not sure why a xsd: gMonthDay a xsd: string < An example of / code> appears.

No comments:

Post a Comment