How to instantiate pinta in a domain

527 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
527
On SlideShare
0
From Embeds
0
Number of Embeds
160
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

How to instantiate pinta in a domain

  1. 1. How to Instantiate Pinta in a Domain
  2. 2. Aware of Components of Pinta • Ontologies • Services – KB (service that retrieves knowledge axioms) – Extractor (service that annotates text) • Interface to view Pinta • Textual content (e.g. comments, reviews etc)
  3. 3. Step:1 Prepare Ontologies 1. Select appropriate ontologies for your domain. They must be RDF/OWL ontologies expressed in RDF/XML, NT or N3 serialisations. 2. Load these ontologies in a Triple Store (Pinta supports OWLIM 3.4+).Consult respective manuals for triple stores on how to load ontologies in a repository. 3. Make note of the repository URL. 4. Make note of all the possible prefix and namespaces used by your ontologies.
  4. 4. Step 2: Prepare Extractor service 1. Use Gazetter program (Java) by providing the location of where the ontologies are stored. This will create Gazetters for the extractor service. 2. Place this Gazetters in Gaz directory of Extractor service. 3. Create a WAR file of the Extractor directory and name it “extractor” 4. Deploy War file on an application server(e.g. Tomcat) 5. Make note of the address where the service is running.
  5. 5. Step 3: Prepare KB service • 1. Modify web.xml file from the kb service folder to point to the Repository URL you noted in Step 1. • 2. Create a War file from the kb folder and name it “kb”. • 3. Deploy this WAR file on an application server (e.g. Tomcat) • 4. Make note of the address where the service is running.
  6. 6. Step 4: Prepare Interface • 1. Modify the dbconnect.php file (under Pinta folder) to point to the location of “kb” and “extractor” services (see step 2 and 3) • 2. Modify functions.php file (under Pinta folder) to all the possible prefix-namespace mappings used within your selected ontologies. (see step 1) • 3. Save the “pinta” folder on a web server of your choice (e.g. apache) • 4. Make note of URL where Pinta is running.
  7. 7. Step 5: Select & Annotate content • 1. Select list of content that you would like to provide as part of Pinta. • 2. Go to “URL of Pinta”/annotatecontent.php • 3. Input the text from your content one by one and as you press “Submit” the content will be immediately available in Pinta.
  8. 8. Time Estimates • Selection of ontologies and Content – This is very subjective task and depends on what type of domain you are working (some have ready made ontologies, some requires fusion or even creation from scratch) • Once you have ontologies and Content, set up and deployment of Pinta – For seasoned programmer ~ 1 day – For medium level programmer ~ 2 -3 days – For junior programmer ~ less than a week

×