public class SKOSFixing extends Object
Constructor and Description |
---|
SKOSFixing() |
Modifier and Type | Method and Description |
---|---|
static void |
attachAllConceptsToScheme(SKOSModel model,
ARTURIResource scheme)
as for
attachAllConceptsToScheme(SKOSModel, ARTURIResource, ARTResource) with scheme set to
NodeFilters.MAINGRAPH |
static void |
attachAllConceptsToScheme(SKOSModel model,
ARTURIResource scheme,
ARTResource graph)
some concept schemes do not their concepts attached to a given scheme.
|
static void |
attachSubTreeToScheme(SKOSModel model,
ARTResource concept,
ARTURIResource scheme,
boolean includeTop,
ARTResource... graphs)
attaches all narrower concepts of
concept to scheme scheme . |
static void |
fixOnlyTopConceptsOfSchemeDeclaration(SKOSModel model,
ARTResource... graphs) |
static void |
main(String[] args) |
public static void attachAllConceptsToScheme(SKOSModel model, ARTURIResource scheme) throws ModelAccessException, ModelUpdateException
attachAllConceptsToScheme(SKOSModel, ARTURIResource, ARTResource)
with scheme set to
NodeFilters.MAINGRAPH
model
- scheme
- ModelAccessException
ModelUpdateException
public static void attachAllConceptsToScheme(SKOSModel model, ARTURIResource scheme, ARTResource graph) throws ModelAccessException, ModelUpdateException
graph
and attach them to a scheme. We
assume all the concepts belong to a single scheme, as multiple scheme datasets are usually well
organized according to their schemes and do not need this fix.model
- scheme
- graph
- ModelAccessException
ModelUpdateException
public static void attachSubTreeToScheme(SKOSModel model, ARTResource concept, ARTURIResource scheme, boolean includeTop, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
concept
to scheme scheme
. The
graphs
parameter is used to know which graphs to look for the skos:broader
triples. The skos:inScheme
is always added to the NodeFilters.MAINGRAPH
model
- concept
- scheme
- graphs
- if not present, defaults to NodeFilters.MAINGRAPH
ModelAccessException
ModelUpdateException
public static void fixOnlyTopConceptsOfSchemeDeclaration(SKOSModel model, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
public static void main(String[] args) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, ModelCreationException, ModelUpdateException, ModelAccessException, UnsupportedRDFFormatException, BadConfigurationException
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.