This project uses the ldif parser from https://github.com/linkeddata/swap to generate RDF (n3) out of ldif user data.
The triples are then expanded by a given ruleset to fit into the AKSW Ontowiki usergraph.
The Apache Jena Java API and the GenericRuleReasoner is used for this expansion.
All Materials for Jena can be found under https://jena.apache.org .
Java8 is needed to run Apache Jena.
To run this program, simply use run.sh
run.sh
--input [ldif input file]
--reasoner [/path/to/reasoner.jar]
--mapping [mappingfile]
--parser [/path/to/pythonParser]
optional: --verbose"
In this example, I use curl to pass the result to Ontowiki. Ontowiki-cli might be another option. See cron.php for details. This will add all exported Data into a special Ldapusers Graph. You need to owl:imports this graph into the Ontowiki Configuration Graph.
To enable an user data update routine, fill in config.tpl and
mv config.tpl config.php
See cron.php for details.