Advertisement

Ontopia tutorial

Technology developer
Oct. 4, 2010
Advertisement

More Related Content

Advertisement
Advertisement

Ontopia tutorial

  1. function(arg1, arg2, arg3) -> result
  2. Predicates, however, are in a sense bidirectional, because of the way the pattern matching works
  3. predicate(topic : role1, $VAR : role2)
  4. predicate($VAR : role1, topic : role2)
  5. The order of the roles are, on the other hand, insignificant
  6. predicate(topic : role1, $VAR : role2)
  7. instance-of (instance,class)
  8. NOTE: the order of the arguments is significant
  9. Like players, instance and class may be specified in two ways:
  10. using a variable ($name)
  11. using a topic reference
  12. e.g. instance-of ( $A, city )
  13. instance-of makes use of the superclass-subclass associations in the topic map
  14. the API lets you write code without worrying about that, however
  15. the processor returns a ParsedQueryIF object, which can be executed
  16. parameters can be passed to the query on each execution
  17. makes up nearly the entire framework
  18. used to extract information from topic maps
  19. lets you execute tolog queries to extract information from the topic map
  20. looping and control flow structures
  21. template
  22. used to create template pages
  23. separates layout and structure from content
  24. not Topic Maps-aware
  25. collected from the tm-sources.xml configuration file
  26. each topic map has its own id (usually the file name)
  27. Each page also holds a set of variable bindings
  28. each variable holds a collection of objects
  29. objects can be topics, base names, locators, strings, ...
  30. Tags access variables
  31. Tells the page which tag library to include and binds it to a prefix
  32. Prefixes are used to qualify the tags (and avoid name collisions)
  33. Use the <tolog:context> tag around the entire page
  34. The "topicmap" attribute specifies the ID of the current topic map
  35. The first time you access the page in your browser the page gets compiled
  36. where to find the other files, plus plug-ins
  37. tm-sources.xml
  38. tells the navigator where to find topic maps
  39. log4j.properties
  40. configuration of the log4j logging
  41. events in the location
Advertisement