public class LanguageFilteringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
localesToLanguages(Enumeration<?> locales)
Take an Enumeration of Locale objects, such as we might get from a
request, and convert to a List of langauage strings, such as are needed
by the LanguageFilteringRDFService.
|
static com.hp.hpl.jena.ontology.OntModel |
wrapOntModelInALanguageFilter(com.hp.hpl.jena.ontology.OntModel rawModel,
javax.servlet.ServletRequest req)
Add a Language Filtering layer to an OntModel by treating it as an RDFService.
|
public static List<String> localesToLanguages(Enumeration<?> locales)
public static com.hp.hpl.jena.ontology.OntModel wrapOntModelInALanguageFilter(com.hp.hpl.jena.ontology.OntModel rawModel,
javax.servlet.ServletRequest req)
Copyright © 2016. All rights reserved.