It also provides storage abstraction due to which, Jena enables new storage subsystems that can be integrated. To facilitate querying, Jena provides fundamental two methods:1. Statement centric methods for manipulating an RDF model as a set of RDF triples.
2. Resource-centric methods for manipulating an RDF model as a set of resources with properties, as well as built-in support for RDF containers.The system perform semantic mapping by making use of Wordnet ontologies for finding synsets of the word and then retrieving related data from the ontologies that we built earlier.
Aache Jena provides the framework by means of which we fire SPARQL queries on given dataset and retrieved data is stored in resource objects Query InterfaceNow let us consider that we are interested in finding the description related to the length () method. We can query the ontology by entering keywords into the query.Ontology plays the vital role while extracting and keeping the information relevant and update. Thus the searching time for required information is minimal when information is stored in four different RDF files compared to other two models.
The model also reduces the human effort required in seeking the relevant information.? Intermediate Result: Intermediate Representation (IR) is nothing but the abstract machine code i.e. abstract form of expected output represented using same output programming language. IR improves portability and modularity of overall system. In this case, use of IR will eliminate the dependency between particular natural language and programming language. We will be able to change natural language or programming language with modification in only that language dependent modules.
IR can be implemented using various techniques, by considering use of expression trees. Trees are useful in satisfying object oriented criteria. Consider an object is declared in some function then hierarchical representation also determine the scope and access rights of an object. Also object oriented programming code can be easily generated with the help of trees.
In this system, Tree will represent a whole system, starting from Classes as root node, then its data member and member function. Again data members will be represented as their name, data type, range, access modifier, access control keywords etc. and member functions as name, return type, argument list, access modifier, access control keywords etc.
Also the call hierarchy of functions will be represented in trees.? Output programming codeThe proposed system will generate Java code as output. Hence, code must satisfy all OOP concepts. Straight-line programming will be used to generate code due to availability of IR. This phase is similar to any modern compiler’s code generation phase. Code optimization techniques like loop optimization, common sub-expression removal will be implemented before actual code generation. Un-used variables or functions, unreachable code or redundant code will be removed.
Code testing will be implemented to remove syntactical errors and compile time errors. Also introduction of exception to handle unavoidable error conditions will be done. For example, errors depending on user input.