Awesome
This is an example of ONT-MAP extension with a factorial function.
Structure:
- main:
ru.avicomp.map.spin.functions.avc.factorial
- ARQ function to calculate n!
in RDF
ru.avicomp.map.spin.system.FactorialOntMAPExtension
- a module initializer
resources/etc/avc.factorial.ttl
- SPIN library with function description
resources/META-INF/services/org.apache.jena.sys.JenaSubsystemLifecycle
- a resource file with a reference to module initializer, see Apache Jena - The Standard Subsystem Registry
- tests:
ru.avicomp.map.tests.FactorialMapTest
- a test, that builds a mapping and runs inference
resources/log4j.properties
- logging settings
Dependencies
License
- Apache License Version 2.0