org.intuitel.merger
public class SMWSerializer extends Serializer
The SMWSerializer read content initially created as a course in a Semantic Media Wiki server, and translates it to its SLOM representation.
In the case of Semantic Media Wiki marshalling is not supported. This is because the SMW course model does not define the concept of course package that could be imported to deploy a course. Instead, Semantic Media Wiki courses require human intervention for their creation.
Further information of the transformation details can be found at the INTUITEL project page, at deliverable D4.2
Serializer
,
SerializerFactory
,
SMWScrapper
Constructor and Description |
---|
SMWSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
getExternalFormatName()
Returns "Semantic Media Wiki".
|
void |
marshall(SLOM theSlom,
Iterator<OutputStream> it)
Marshall is not allowed for SMW course format.
|
SLOM |
unmarshall(Set<File> inputCourse)
Reads content from a file and returns a SLOM object with the information read.
|
public SLOM unmarshall(Set<File> inputCourse) throws BadFileException, IOException
The unmarshall method reads content from a file and returns a SLOM object with the information read. In the case of Semantic Media Wiki transformations, the file is build by scraping the web course content. This is done by using SMWScrapper objects
unmarshall
in class Serializer
inputCourse
- A Set of files containing the course information in the desired formatBadFileException
IOException
SMWScrapper
public void marshall(SLOM theSlom, Iterator<OutputStream> it) throws InvalidParameterException
Further information of the transformation details can be found at the INTUITEL project page, at deliverable D4.2
marshall
in class Serializer
theSlom
- A SLOM object containing the information to be serializedit
- A Iterator of OutputStream objects, that will be used to write the serializationInvalidParameterException
public String getExternalFormatName()
Copyright © 2014. All rights reserved.