public class ReifiedSKOSDefinitionsConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ReifiedSKOSDefinitionsConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
convert(SKOSModel sourceModel,
SKOSModel targetModel,
boolean createURIsForDefinitions,
boolean groupLanguages,
boolean copyAlsoPlainDefinitions)
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 ARTURIResource |
createRandomURI4Definition(RDFModel model) |
static ARTURIResource |
createRandomURI4Definition(RDFModel model,
String lang) |
static ARTResource |
createReifiedDefinition(RDFModel model,
boolean createURIsForDefinitions) |
static ARTResource |
createReifiedDefinition(RDFModel model,
String lang,
boolean createURIsForDefinitions) |
static void |
main(String[] args) |
public static void convert(SKOSModel sourceModel, SKOSModel targetModel, boolean createURIsForDefinitions, boolean groupLanguages, boolean copyAlsoPlainDefinitions) throws ModelAccessException, ModelUpdateException
sourceModel
- targetModel
- createURIsForDefinitions
- groupLanguages
- if true
, all skos definitions in different languages for a same concept are
grouped into one definition rdf resource with different rdf:values, one per each languagecopyAlsoPlainDefinitions
- if true
, the converted skos:definition triples are maintainedModelAccessException
ModelUpdateException
public static ARTResource createReifiedDefinition(RDFModel model, boolean createURIsForDefinitions)
public static ARTResource createReifiedDefinition(RDFModel model, String lang, boolean createURIsForDefinitions)
public static ARTURIResource createRandomURI4Definition(RDFModel model)
public static ARTURIResource createRandomURI4Definition(RDFModel model, String lang)
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.