Coder Social home page Coder Social logo

cmacc-mediawiki's Introduction

Cmacc-Mediawiki

The Mediawiki extension for the Cmaac data model. See beta.commonaccord.org.

How to use it

The Mediawiki extension for the Cmaac data model. See beta.commonaccord.org.

@hazardj thinks the only things you need to do to get this working in Mediawiki are the following. LMK.

  1. Install MW
  2. Add the following into your LocalSettings.php

require_once( "$IP/extensions/Binder/binder.php" );

  1. In the extentions directory, create the Binder directory. Add this file as binder.php:

Many thanks to Andrew. Some fiddling by @hazardj under his initials - JGH.

What's this do?

Nested responses:

It adds to MW a function that is like transclusion: A list of pages (Binder) each page can have one or more lists of key/values (Fields) Rendering the Binder starts with a default field ( {Model.Root} ) and looks for it by looking down the succession of lists.
If found in a list, the text of the value is substituted for the {Model.Root} in the text. If not found, then it looks for a page called Model.Root If found, then the text of the page is substituted for the {Model.Root} in the text. If not found, then no substitution is made. Repeat for each {Token} found in the replacement text.

There is a variation (Render with Edit Links) that sort of marks the replacement by putting in a * just before. But totally improvised by @hazardj and buggy. A really impressive version of this was done for the Xwiki platform by Ludovic Dubost.

What it doesn't do:

  • Recursion, prefixing, include other URLs, wrap the spans with metadata to allow easy understanding and editing.

Next Level:

It is used in http://beta.commonaccord.org to codify legal documents.

Next Level: It is an example of the use of this Lisp-like function. See http://beta.commonaccord.org/wiki/About:TechnicalEnablement

Top Level: An iterative semantic web.

cmacc-mediawiki's People

Watchers

 avatar  avatar  avatar

Forkers

commonaccord

cmacc-mediawiki's Issues

Not working

Installed MW
Did as instructed and added the Binder.php file in the extensions directory, but now all I get is a webpage similar to the one on Github. It seems that the script is just displaying instead of executing. Maybe some pernissions need to be changed? or maybe something else need to be done?

Importing Standard Clauses into a dedicated wiki

As I have now a working instance on my PC, the next step for me is to seed that instance with the knowledge already accumulated in beta.commonaccord.org,
From the standard install there was no way of doing an import into my system.

Installing on bitnami

Bitnami was a smooth experience except for:

  1. Figuring out about Cyberduck and the pem authentication was new and a bit confusing.
  2. For some reason Aquamac, which works great elsewhere, was wrecking LocalSettings.php. Oddly, TextEdit was better - no problem.
  3. So, after the install, all you neeed to do is:
    3.1. add extensions/Binder/binder.php
    3.2. add a line in LocalSettings.php for
    require_once( "$IP/extensions/Binder/binder.php"
    3.3 if you want to export/import:
    $wgGroupPermissions['']['import'] = true;
    $wgGroupPermissions['
    ']['importupload'] = true;

Still missing setup instruction

Now able to run MW with the "binder.php" extension, but getting an error message when clicking on the "Render" button after creating a test page MarcD/Agt_Cadre

Not Found
The requested URL /wiki/MarcD/Agt_Cadre was not found on this server.
<<

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.