git clone https://@opensourceprojects.eu/git/p/timbus/context-population/extractors/plain timbus-context-population-extractors-plain



File Date Author Commit
importers 2014-11-30 Till Riedel Till Riedel [e21ac1] fixed build
lib 2014-11-30 Till Riedel Till Riedel [a1de3b] remove saxon and oro
mappings 2014-11-30 Till Riedel Till Riedel [e21ac1] fixed build
scripts 2014-09-08 root root [09bc7d] add parent dir
src 2014-11-30 Till Riedel Till Riedel [1253ff] add licence
test 2014-09-16 Till Riedel Till Riedel [7e15b8] delete
Readme.md 2014-11-30 Till Riedel Till Riedel [f221cb] add readme remove shellscript
pom.xml 2014-11-30 Till Riedel Till Riedel [1253ff] add licence

Read Me

Plain Extractor

This repository hosts a stand-alone version of the XSLT based ontology importer/converter. Furthermore example extractor scripts and mapping definitions are given for:
group and passwd files
file listings using stat permissions
files moved from svn repositories
svn repositories with local modifications

The importer accepts both (structured) plain text (via a regular grammar) and XML Input. The mappings generate RDF/XML that is transformed into ntripples for stdout.

Building

Use Maven to build:
mvn package

Running

Use java:
java -jar target/extractor.plain-0.0.3-jar-with-dependencies.jar [output] [input]

Use Case

During the installation process of the system new users may be created and file access permissions may be modified. The tool should capture users and groups created in the system. Furthermore, it has to check file permissions of all installed packages and check if the permissions are different from default. If so, such anomalies have to be recorded. Finally, the permissions of files which are a part of the analysed system have to be recorded. The tool should work recursively on directories and should follow symlinks. The plain extractor can be used to parse the /etc/passwd files

Examples

see mapping folder and test/input (e.g. phaidra-xx files)

2014 TECO, Karlsruhe Institute of Technology

Licence

The work has been developed in the TIMBUS Project and the above-mentioned are Members of the TIMBUS Consortium.
TIMBUS is supported by the European Union under the 7th Framework Programme for research and technological development and demonstration activities (FP7/2007-2013) under grant agreement no. 269940.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTIBITLY, or FITNESS FOR A PARTICULAR PURPOSE. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law or agreed to in writing, shall any Contributor be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work.
See the License for the specific language governing permissions and limitation under the License.

(for 3rd party libs refer to the generated THIRD-PARTY.txt)