Ejemplo n.º 1
0
    def setOntologyURI(self, uri):
        """
        Ses the URI for the ontology.

        @type uri: str 
        @param uri: a string representing a URI
        """

        self.ontology = Ontology(uri)
Ejemplo n.º 2
0
from eltk.utils.CharConverter import *
from eltk.utils.functions import *

from eltk.display.Dictionary import *
from eltk.display.igt import *

"""
This module will aid in reading Praat files. This aim is to populate an OWL ontology with instances extracted from the Praat file.

NOTE:
Though this file creates GOLD entities, the full functionality is not yet implemented. 
"""

#create ontology object and declare uri
gold=Ontology('http://purl.org/linguistics/gold')

#load GOLD remotely
#gold=load('http://purl.org/linguistics/gold')

#may be done locally, for speed
gold.load('file:'+abspath('../examples/inputfiles/gold-2008.owl'))



class PraatReader():

    """
    A class for parsing and processing Praat TextGrid files
    
    """
Ejemplo n.º 3
0
 def setUp(self):
     self.gold = Ontology(
         identifier=URIRef(u'http://purl.org/linguistics/data/myonto/'))
     self.gold.parse(ELTK_HOME + "/examples/inputfiles/test_ontology.owl")
Ejemplo n.º 4
0
    def setUp(self):

        #create onto URI
        self.uri = URIRef(u'http://purl.org/linguistics/test_onto.owl')
        #create onto
        self.myonto = Ontology(self.uri)