com.bigdata.rdf.internal.SampleExtensionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigdata-rdf-test Show documentation
Show all versions of bigdata-rdf-test Show documentation
Blazegraph(TM) RDF Test Suites
package com.bigdata.rdf.internal;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import com.bigdata.rdf.model.BigdataValue;
/**
* Simple {@link IExtensionFactory} implementation that creates two
* {@link IExtension}s - the {@link EpochExtension} and the
* {@link ColorsEnumExtension}.
*/
public class SampleExtensionFactory implements IExtensionFactory {
private final List> extensions;
public SampleExtensionFactory() {
extensions = new LinkedList>();
}
@Override
public void init(final IDatatypeURIResolver resolver,
final ILexiconConfiguration config) {
// if (lex.isInlineDateTimes())
// extensions.add(new DateTimeExtension(
// lex, lex.getInlineDateTimesTimeZone()));
extensions.add(new EpochExtension(resolver));
extensions.add(new ColorsEnumExtension(resolver));
// extensionsArray = extensions.toArray(new IExtension[2]);
}
@Override
public Iterator> getExtensions() {
return Collections.unmodifiableList(extensions).iterator();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy