Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
/ synopsx-old Public archive
forked from ahn-ens-lyon/synopsx

Full XML corpus publishing system using BaseX XML database

License

Notifications You must be signed in to change notification settings

mingarao/synopsx-old

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README is not up to date !

Synopsx

Full XML corpus publishing system developped at ENS Lyon (http://ahn.ens-lyon.fr) based on BaseX

Installation

    cd <path_to_basex>/webapp
    rm -fr *
    git clone https://github.com/ahn-ens-lyon/synopsx.git .

Don't forget to change your admin password an

Configuration

Default syntax

If you use the BaseX Client use the default syntax : http://docs.basex.org/wiki/Commands You can also use the command line syntax : http://docs.basex.org/wiki/REST#Command_Line

Config database

CREATE DB 'config' create the config database (http://docs.basex.org/wiki/Commands#CREATE_DB)

OPEN DB 'config' open the config database (http://docs.basex.org/wiki/Commands#OPEN_DB)

ADD synopsx.xml add the config file (http://docs.basex.org/wiki/Commands#ADD)

    <configuration name="synopsx">
        <output name="html" value="synopsx_html"/>
        <output name="oai" value="synopsx_oai"/>
    </configuration>

Project database

CREATE DB 'myproject'

OPEN DB 'myproject'

ADD myproject_data.xml (or ADD TO 'myproject/' myproject_data.zip)

OPEN DB 'config'

ADD myproject.xml

    <!-- config file for 'myproject' -->
    <configuration name="myproject">
        <!-- The @value attribute gives the parent xqm module namespace -->
        <parent value="synopsx"/>  
        <!-- The @value attribute gives the output xqm module namespace -->
        <output name="html" value="myproject"/>  
        <!-- Uncomment this line to overwrite synopx oai default functions -->
        <!--<output name="oai" value="myproject_oai_namespace"/>-->
    </configuration>

XQuery syntax

You can also interact with BaseX with the XQuery syntax for the installation process : http://docs.basex.org/wiki/Database_Module

Config database

    <!-- create the config database (http://docs.basex.org/wiki/Database_Module#db:create) -->
    db:create("config")
    <!-- open the config database (http://docs.basex.org/wiki/Database_Module#db:open) -->
    db:open("config")
    <!-- add the XML sequence to the config database (http://docs.basex.org/wiki/Database_Module#db:add) -->
    db:add("config",
    <configuration name="synopsx">
        <output name="html" value="synopsx_html"/>
        <output name="oai" value="synopsx_oai"/>
    </configuration>, "synopsx.xml" )

Project database

    <!-- create the project database (http://docs.basex.org/wiki/Database_Module#db:create) -->
    db:create("myproject")
    <!-- open the project database (http://docs.basex.org/wiki/Database_Module#db:open) -->
    db:open("myproject")
<!-- Add XML data to the project database -->

    <!-- add the project's config XML sequence to the config database (http://docs.basex.org/wiki/Database_Module#db:add)

    first open the config database (http://docs.basex.org/wiki/Database_Module#db:open) -->

    db:open("config")

    db:add("config",
    <configuration name="myproject">
        <!-- The @value attribute gives the parent xqm module namespace -->
        <parent value="synopsx"/>  
        <!-- The @value attribute gives the output xqm module namespace -->
        <output name="html" value="myproject"/>  
        <!-- Uncomment this line to overwrite synopx oai default functions -->
        <!--<output name="oai" value="myproject_oai_namespace"/>-->
    </configuration>, "myproject.xml" )

About

Full XML corpus publishing system using BaseX XML database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.0%
  • XSLT 41.6%
  • PHP 5.9%
  • XQuery 5.1%
  • CSS 4.4%