PageRenderTime 80ms CodeModel.GetById 26ms RepoModel.GetById 5ms app.codeStats 0ms

/extensions/queries/old/testupdateTable.php

https://code.google.com/p/ontowiki/
PHP | 35 lines | 14 code | 6 blank | 15 comment | 0 complexity | b4e6320bc6fe68fdc5fad90da5dd3837 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. <?
  2. //include ('ajax.php');
  3. require_once('Options.php');
  4. echo "<xmp>";
  5. //$arr = array ( 'sembib:HumanAttribute' => 3 , 'sembib:WaterArea' => 6 , 'sembib:GeographicArea' => 1 ) ;
  6. //sort($arr);
  7. //var_dump($arr);
  8. //die;
  9. //Options::$pathToIni="config.ini";
  10. $json = '[{\"s\":\"?city\",\"p\":\"leader_name\",\"o\":\"?leader\"}]';
  11. $json = '[{\"s\":\"?city\",\"p\":\"db-ont:birthplace\",\"o\":\"?leader\"}]';
  12. //$str = '[{\"s\":\"?city\",\"p\":\"fdsfjowl:disjointWith\",\"o\":\"?leader\"}]';
  13. //$str = '{\"0\":{\"s\":\"aaaaaa\",\"p\":\"?dunno\",\"o\":\"?leader\",\"current\":\"s\"}}';
  14. //$str= '{\"0\":{\"s\":\"?all\",\"p\":\"sembib:spouseOf\",\"o\":\"?leader\",\"current\":\"s\"}}';
  15. $json = '{"0":{"s":"?what","p":"db-ont:releaseDate","o":"2007-09-25","otype":"typed-literal","lang":"","datatype":"http://www.w3.org/2001/XMLSchema#date"}}';
  16. $json = '{\"0\":{\"s\":\"?what\",\"p\":\"db-ont:releaseDate\",\"o\":\"2004-03-08\",\"lang\":\"\"},\"1\":{\"s\":\"?what\",\"p\":\"?newPredicate\",\"o\":\"?newObject\",\"otype\":\"\",\"lang\":\"\",\"datatype\":\"\"}}';
  17. $json = '{"0":{"s":"?what","p":"name","o":"?released","lang":""},"1":{"s":"?what","p":"?newPredicate","o":"California State University, Long Beach","otype":"literal","lang":"en","datatype":"","current":"p"}}';
  18. $json = '{"0":{"s":"?what","p":"name","o":"?released","lang":""},"1":{"s":"?what","p":"?newPredicate","o":"California","lang":"","current":"o"}}';
  19. //test($str);
  20. echo $json."\n";
  21. include("ajax.php");
  22. //
  23. echo getSPARQLQuery($json, 10)."\n\n";
  24. echo getResults($json, 10)."\n\n";
  25. //$json= '{\"0\":{\"s\":\"?what\",\"p\":\"db-ont:birthplace\",\"o\":\"e\",\"current\":\"o\"}}';
  26. //echo getAutocompletionQuery($json, 10)."\n\n";
  27. //include ('autocompletion.php');
  28. //print_r(suggest($str,100));
  29. ?>