PML example: what time is it

From Inference Web

Jump to: navigation, search

(draft example; see iw:PML Primer for an introduction to PML.)

by: Tim Lebo

Tim types a question

:timQ
   a pmlj:Question;
   pmlp:hasContent [
      a pmlp:Information;
      pmlp:hasRawString "What time is it?"; 
      pmlp:hasReferenceSourceUsage [
         a pmlp:SourceUsage;
         pmlp:hasUsageDateTime "2010-03-09"^^xsd:dateTime;
         pmlp:hasSource        :Tim;
      ];
   ];
.
:systemQuery
   a pmlj:Query;
   p:hasContent [
      a :Information;
      pmlp:hasRawString "prefix : <http://time.org/ask/" select ?time where {:currentTime rdf:value ?time}";
      pmlp:hasLanguage   :SPARQL
   ];
   pmlj:isQueryFor :timQ;
.
Personal tools
Navigation