Skip to content

Converting ldif directory information into RDF for Ontowiki Import

Notifications You must be signed in to change notification settings

FTeichmann/ldif2OntowikiUsers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parser for ldif->rdf to import into OntowikiUsers Graph

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.

Run

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"

Adding Result to Ontowiki Usergraph

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.

Cronjob

To enable an user data update routine, fill in config.tpl and

mv config.tpl config.php

See cron.php for details.

About

Converting ldif directory information into RDF for Ontowiki Import

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages