public class RDFFilesLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areIsomporphic(org.apache.jena.rdf.model.Model m1,
org.apache.jena.rdf.model.Model m2)
Check 'isomorphism' for purposes of propagating firsttime changes.
|
static Set<String> |
getEnabledLocales(javax.servlet.ServletContext ctx) |
static void |
loadEveryTimeFiles(javax.servlet.ServletContext ctx,
String modelPath,
org.apache.jena.ontology.OntModel model)
Load the "every time" files.
|
static void |
loadFirstTimeFiles(javax.servlet.ServletContext ctx,
String modelPath,
org.apache.jena.rdf.model.Model model,
boolean firstTime)
Load the "first time" files if we say it is the first time.
|
static void |
removeBlankTriples(org.apache.jena.rdf.model.Model model)
Remove all triples where subject or object is blank (Anon)
|
static void |
removeChangesThatConflictWithUIEdits(org.apache.jena.rdf.model.Model baseModel,
org.apache.jena.rdf.model.Model userModel,
org.apache.jena.rdf.model.Model changesModel)
Check if the user model (UI) changes conflict with the changes made to
the firsttime.
|
public static void loadFirstTimeFiles(javax.servlet.ServletContext ctx,
String modelPath,
org.apache.jena.rdf.model.Model model,
boolean firstTime)
public static void loadEveryTimeFiles(javax.servlet.ServletContext ctx,
String modelPath,
org.apache.jena.ontology.OntModel model)
public static void removeChangesThatConflictWithUIEdits(org.apache.jena.rdf.model.Model baseModel,
org.apache.jena.rdf.model.Model userModel,
org.apache.jena.rdf.model.Model changesModel)
baseModel - firsttime backup modeluserModel - current state in the system (user/UI-model)changesModel - the changes between firsttime-files and firsttime-backuppublic static void removeBlankTriples(org.apache.jena.rdf.model.Model model)
public static boolean areIsomporphic(org.apache.jena.rdf.model.Model m1,
org.apache.jena.rdf.model.Model m2)
m1 - m2 - Copyright © 2022. All rights reserved.