WICOM
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Data Fields
SparqldlConnector Class Reference
Inheritance diagram for SparqldlConnector:
Connector

Public Member Functions

 run ($input_string)
 
 check_files ($temporal_path, $sparqldl_path, $file_path)
 
- Public Member Functions inherited from Connector
 __construct ()
 
 run ($document)
 
 reset ()
 
 get_col_answers ()
 

Data Fields

const PROGRAM_CMD = "de-derivo-sparqldlapi-3.0.0.jar"
 
const PROGRAM_PARAMS_IN = "de.derivo.sparqldlapi.examples.Sparql_dl_crowd"
 
const PROGRAM_LIB = "lib/*"
 

Additional Inherited Members

- Protected Attributes inherited from Connector
 $col_answers = []
 

Member Function Documentation

check_files (   $temporal_path,
  $sparqldl_path,
  $file_path 
)

Check for program and input file existance and proper permissions.

Returns
true always
Exceptions
Exceptionwith proper message if any problem is founded.
run (   $input_string)

Execute Konclude with the given $document as input. Note that this function redefines run in order to convert a DOMDocumentType to DOMElement.

Returns
An array of SPARQL-DL answers

Field Documentation

const PROGRAM_CMD = "de-derivo-sparqldlapi-3.0.0.jar"

The SPARQL-DL command is for executing with all its parameters. SPARQL-DL command executes SPARQL-DL queries on an OWL 2 Ontology and writes the output into "sparqldl-out-file.json" file. This file must be created during crowd installation.

output format:

[0]=> array(2) { ["head"]=> array(1) { ["vars"]=> array(2) { [0]=> string(3) "op1" [1]=> string(3) "op2" } } ["results"]=> array(1) { ["bindings"]=> array(1) { [0]=> array(2) { ["op1"]=> array(2) { ["type"]=> string(3) "uri" ["value"]=> string(22) "http://localhost/kb1#R" } ["op2"]=> array(2) { ["type"]=> string(3) "uri" ["value"]=> string(22) "http://localhost/kb1#R" } } } } }

File include the following tags:

class -> Class objectproperty -> ObjectProperty dataproperty -> DataProperty strictsub -> StrictSubClassOf directsub -> DirectSubClassOf

const PROGRAM_LIB = "lib/*"
const PROGRAM_PARAMS_IN = "de.derivo.sparqldlapi.examples.Sparql_dl_crowd"

The documentation for this class was generated from the following file: