Differences
This shows you the differences between two versions of the page.
 
| Both sides previous revisionPrevious revisionNext revision | Previous revision | 
| doc:loading_files_and_ros_packages [2014/08/07 09:57]  – [Exporting knowledge into OWL files]  admin | doc:loading_files_and_ros_packages [2014/11/25 08:30] (current)  – [Loading Prolog modules]  admin | 
|---|
|  owl_parse('path/to/file.owl'). |  owl_parse('path/to/file.owl'). | 
| </code> | </code> | 
|   |  | 
|   | The OWL parser understands URLs of the form package:\/\/<pkg_name>/local/path/to/file.owl that are also used by the [[http://wiki.ros.org/resource_retriever|resource_retriever]] package in ROS and reference a file relative to a ROS package. You can use these URLs both for loading OWL files from Prolog and for imports in the head of an OWL file. | 
 |  | 
| =====  Loading Prolog modules  ===== | =====  Loading Prolog modules  ===== | 
| </code> | </code> | 
 |  | 
|   | The //rosprolog// init scripts automatically add the 'prolog' folder inside ROS packages to the Prolog library search path when they are loaded using //register_ros_package//. Afterwards, libraries in this folder can be loaded using the simple //library(module_name)// instead of the file path. | 
| =====  Loading OWL/Prolog files in ROS packages  ===== | =====  Loading OWL/Prolog files in ROS packages  ===== | 
 |  |