public class SKOS2SKOSXLConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
SKOS2SKOSXLConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
convert(SKOSModel sourceModel,
SKOSXLModel targetModel,
boolean createURIsForXLabels)
|
static void |
convert(SKOSModel sourceModel,
SKOSXLModel targetModel,
boolean createURIsForXLabels,
boolean copyAlsoSKOSLabels)
This converter (with some minor computational overhead) takes into consideration both cases where the
source and target model are different, and when they are the same.
|
static void |
main(String[] args) |
public static void convert(SKOSModel sourceModel, SKOSXLModel targetModel, boolean createURIsForXLabels) throws ModelAccessException, ModelUpdateException
sourceModel
- targetModel
- createURIsForXLabels
- ModelAccessException
ModelUpdateException
public static void convert(SKOSModel sourceModel, SKOSXLModel targetModel, boolean createURIsForXLabels, boolean copyAlsoSKOSLabels) throws ModelAccessException, ModelUpdateException
sourceModel
- the source model where triples to be transformed are taken fromtargetModel
- the model where to store the SKOSXL converted object (can be the same
sourceModel
createURIsForXLabels
- tells whether URIs should be generated or not (i.e. create bnodes) for the xLabelscopyAlsoSKOSLabels
- instructs the converter to also maintain the plain skos pref/alt/hidden labels in the target
modelModelAccessException
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.