
de.uni_stuttgart.vis.vowl.owl2vowl.server.ContextPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OWL2VOWL Show documentation
Show all versions of OWL2VOWL Show documentation
Owl2Vowl is an ontology converter used to convert the given ontology to a json
format that is used in the WebVOWL visualization. See
https://github.com/VisualDataWeb/WebVOWL or http://vowl.visualdataweb.org/.
The newest version!
package de.uni_stuttgart.vis.vowl.owl2vowl.server;
import org.springframework.stereotype.Component;
import org.springframework.web.context.ServletContextAware;
import javax.servlet.ServletContext;
import java.io.File;
@Component
public class ContextPath implements ServletContextAware {
private static String contextPath;
public static String getContextPath() {
return contextPath;
}
@Override
public void setServletContext(ServletContext servletContext) {
ContextPath.contextPath = servletContext.getRealPath(File.separator) + File.separator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy