Difference between revisions of "Fresnel Forms SMW extension"

From SW_OWF
Jump to navigation Jump to search
(headers top level)
Line 1: Line 1:
 
This is a '''''work in progress'''''.
 
This is a '''''work in progress'''''.
  
== Install instructions ==
+
= Install instructions =
  
 
# Download and install the prerequisites:
 
# Download and install the prerequisites:
Line 21: Line 21:
 
# Go to the page "Special:FresnelForms" on your wiki and try it out
 
# Go to the page "Special:FresnelForms" on your wiki and try it out
  
== Fuseki quickstart instructions ==
+
= Fuseki quickstart instructions =
  
 
# Full instructions are at http://jena.apache.org/documentation/serving_data/index.html
 
# Full instructions are at http://jena.apache.org/documentation/serving_data/index.html

Revision as of 16:35, 28 December 2017

This is a work in progress.

Install instructions

  1. Download and install the prerequisites:
    1. MediaWiki
    2. Semantic MediaWiki
    3. Page Forms
    4. ParserFunctions
    5. Character Escapes
  2. git from https://github.com/LloydRutledge/FresnelForms/ the directory FresnelForms into the extensions directory
  3. Arrange a SPARQL endpoint server
    1. OWF is developed and tested with Jena/Fuseki
    2. The Fuseki quickstart instructions below can get you going with Fuseki (and OWF) fast
    3. The endpoint must match these requirements
      1. Supports SPARQL 1.1 that your OWF installation can CLEAR and LOAD to it
      2. Performs RDFS and OWL reasoning. Note that 4store does not support the required reasoning.
      3. Note: This SPARQL endpoint does not have to be the same as the one used by your Semantic MediaWiki, nor does your Semantic MediaWiki need to be using any SPARQL endpoint.
  4. Add to your wiki's LocalSettings.php file the following lines:
    require_once("$IP/extensions/FresnelForms/FresnelForms.php" );
    $wgRawHtml = true;
    $owfgSparqlQueryEndpoint = 'http://localhost:3030/OWF/sparql';
    $owfgSparqlUpdateEndpoint = 'http://localhost:3030/OWF/update';
  5. Replace the query and update endpoint URIs with those of the endpoint you installed for use by OWF
  6. Go to the page "Special:FresnelForms" on your wiki and try it out

Fuseki quickstart instructions

  1. Full instructions are at http://jena.apache.org/documentation/serving_data/index.html
  2. Go to the SNAPSHOT directory at https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-fuseki/
  3. Download one of the distribution compressed directory files
  4. Decompress it to a directory suited for downloaded Java programs
  5. Copy the file config-OWL.ttl from the OWF directory to the Fuseki directory
  6. cd to the Fuseki directory
  7. Enter the commands:
    export FUSEKI_HOME=.;
    ./fuseki-server --config=config-OWF.ttl &
  8. Fuseki is now running and ready for OWL Wiki Forms
  9. The variable assignment code above for LocalSettings.php should work as is with the default Fuseki server these quickstart instructions lead to