Skip to content
Martynas Jusevičius edited this page Jul 2, 2018 · 4 revisions

AtomGraph Core is meant to be used as a base library for Linked Data Web applications. Follow these simple steps to get started:

  • create a new Maven Web application

  • add Core as dependency

  • extend one of the Resource base class implementations, for example ResourceBase - it will serve as the root JAX-RS resource

  • extend Application class if necessary

  • register the Application class (either your own or from Core) in your project's webapp/WEB-INF/web.xml like this:

      <servlet>
          <servlet-name>index</servlet-name>
          <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
          <init-param>
              <param-name>javax.ws.rs.Application</param-name>
              <param-value>com.atomgraph.core.Application</param-value>
          </init-param>
      </servlet>
      <servlet-mapping>
          <servlet-name>index</servlet-name>
          <url-pattern>/</url-pattern>
      </servlet-mapping>
    

For a complete example of a Web application built on AtomGraph Core, take a look at AtomGraph Processor and AtomGraph Web-Client.

Clone this wiki locally