public class RDFToTopicMapConverter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RTM_ASSOCIATION |
static String |
RTM_BASENAME |
static String |
RTM_GENERATED_NAME |
static String |
RTM_IN_SCOPE |
static String |
RTM_INSTANCE_OF |
static String |
RTM_MAPSTO |
static String |
RTM_OBJECT_ROLE |
static String |
RTM_OBJECT_URI |
static String |
RTM_OCCURRENCE |
protected static String |
RTM_PREFIX |
static String |
RTM_SOURCE_LOCATOR |
static String |
RTM_SUBJECT_IDENTIFIER |
static String |
RTM_SUBJECT_LOCATOR |
static String |
RTM_SUBJECT_ROLE |
static String |
RTM_SUBJECT_URI |
static String |
RTM_TYPE |
Modifier and Type | Method and Description |
---|---|
static void |
convert(InputStream input,
String syntax,
String mappingurl,
String mappingsyntax,
TopicMapIF topicmap,
boolean lenient)
EXPERIMENTAL: Converts an RDF model into the topic map using the
given mapping.
|
static void |
convert(org.apache.jena.rdf.model.Model model,
TopicMapIF topicmap)
EXPERIMENTAL: Converts an RDF model into the topic map using the
mapping found within the RDF model.
|
static void |
convert(URL infileurl,
String syntax,
String mappingurl,
String mappingsyntax,
TopicMapIF topicmap,
boolean lenient)
EXPERIMENTAL: Converts an RDF model into the topic map using the
given mapping.
|
static void |
generateNames(TopicMapIF topicmap)
EXPERIMENTAL: Automatically generates names for nameless topics
based on their subject identifiers.
|
protected static final String RTM_PREFIX
public static final String RTM_MAPSTO
public static final String RTM_BASENAME
public static final String RTM_INSTANCE_OF
public static final String RTM_OCCURRENCE
public static final String RTM_ASSOCIATION
public static final String RTM_SUBJECT_ROLE
public static final String RTM_OBJECT_ROLE
public static final String RTM_IN_SCOPE
public static final String RTM_SUBJECT_URI
public static final String RTM_OBJECT_URI
public static final String RTM_SOURCE_LOCATOR
public static final String RTM_SUBJECT_IDENTIFIER
public static final String RTM_SUBJECT_LOCATOR
public static final String RTM_TYPE
public static final String RTM_GENERATED_NAME
public static void convert(URL infileurl, String syntax, String mappingurl, String mappingsyntax, TopicMapIF topicmap, boolean lenient) throws org.apache.jena.shared.JenaException, IOException
infileurl
- the URL to read the input data fromsyntax
- the syntax of the input data. Values are "RDF/XML", "N3",
and "N-TRIPLE". Defaults to "RDF/XML" if null.mappingurl
- the URL to read the mapping from. If null the mapping
is taken from the input data.mappingsyntax
- the syntax of the mapping. Values are "RDF/XML", "N3",
and "N-TRIPLE". Defaults to "RDF/XML" if null.topicmap
- The topic map to add the converted data to.lenient
- When false, errors are thrown if the RDF data cannot be
correctly mapped (for example, a statement type is mapped to a
topic name, but has a URI value).org.apache.jena.shared.JenaException
IOException
public static void convert(InputStream input, String syntax, String mappingurl, String mappingsyntax, TopicMapIF topicmap, boolean lenient) throws org.apache.jena.shared.JenaException, IOException
input
- the InputStream to read the input data fromsyntax
- the syntax of the input data. Values are "RDF/XML", "N3",
and "N-TRIPLE". Defaults to "RDF/XML" if null.mappingurl
- the URL to read the mapping from. If null the mapping
is taken from the input data.mappingsyntax
- the syntax of the mapping. Values are "RDF/XML", "N3",
and "N-TRIPLE". Defaults to "RDF/XML" if null.topicmap
- The topic map to add the converted data to.lenient
- When false, errors are thrown if the RDF data cannot be
correctly mapped (for example, a statement type is mapped to a
topic name, but has a URI value).org.apache.jena.shared.JenaException
IOException
public static void convert(org.apache.jena.rdf.model.Model model, TopicMapIF topicmap) throws org.apache.jena.shared.JenaException, IOException
org.apache.jena.shared.JenaException
IOException
public static void generateNames(TopicMapIF topicmap)