HTTP Port - Part 1

The latest release of Construct has the new HTTP Port enabled by default. The HTTP Port has similar functionality to the data port — you can use it to insert and query for data in Construct. The difference is that the data port works over raw TCP sockets, whereas the HTTP Port works over HTTP.

Now we can query Construct through a web browser and web apps… neat, huh?

First off, the construct.properties file now contains:

  1. <!– http port –>
  2. <component interface=“org.construct_infrastructure.component.httpport.HttpPort” implementation=“org.construct_infrastructure.component.httpport.HttpPortImpl”>
  3. <property name=“port” value=“8888″ />
  4. </component>

these lines activate the HTTP Port on port 8888. When you have Construct running, open your web browser and go to http://localhost:8888/ and you should a simple set of forms for querying and inserting data using HTTP GET and HTTP POST. It looks something like this:

Screenshot of the HTTP Port

From this page you can send RDF data in N-3 format or SPARQL queries to Construct. Try clicking on one of the buttons to test it out.

This is the end of Part 1 on the HTTP Port. Part 2 of this post will explain how to build your own web forms and use of XSL stylesheets for your results.

1 Response to “HTTP Port - Part 1”


  1. 1 Wei

    The post is useful and interesting. However, there is an image, screenshot_query_construct_mozilla_firefox.png, doesn’t show.

  1. 1 HTTP Port - Part 2 at Construct

Leave a Reply