adding example of where model change preprocessors can be defined in the n3
This commit is contained in:
parent
4f94e897ec
commit
7981b8fed9
1 changed files with 17 additions and 0 deletions
17
rdf/display/everytime/n3ModelChangePreprocessors.n3
Normal file
17
rdf/display/everytime/n3ModelChangePreprocessors.n3
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||||
|
|
||||||
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||||
|
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||||
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||||
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
|
|
||||||
|
## The example below demonstrates how you can associate particular ModelChangePreprocessors
|
||||||
|
## with the application as a whole. These preprocessors will be run with
|
||||||
|
## every edit/addition in N3EditUtils.preprocessModels(changes, configuration, vreq);
|
||||||
|
|
||||||
|
## Defines the preprocessor class
|
||||||
|
## Can extend this to define what the constructor arguments should be if required, and then N3EditUtils.java should be modified
|
||||||
|
## to know it can pull out parameters based on what is defined in the display model
|
||||||
|
|
||||||
|
## <java:edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors.TestModelChangePreprocessor>
|
||||||
|
## a <java:edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.preprocessors.ModelChangePreprocessor> .
|
Loading…
Add table
Add a link
Reference in a new issue