From: <jen...@us...> - 2007-08-20 10:44:05
|
Revision: 2 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=2&view=rev Author: jenslehmann Date: 2007-08-20 03:43:47 -0700 (Mon, 20 Aug 2007) Log Message: ----------- added more structure Added Paths: ----------- trunk/INSTALL trunk/LICENSE trunk/README trunk/bin/ trunk/bin/dllearner trunk/bin/dllearner.bat trunk/bin/quickstart trunk/bin/quickstart.bat trunk/bin/ws trunk/bin/ws.bat trunk/build.xml trunk/doc/ trunk/examples/ trunk/library/ trunk/src/ Added: trunk/INSTALL =================================================================== --- trunk/INSTALL (rev 0) +++ trunk/INSTALL 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ + Added: trunk/LICENSE =================================================================== --- trunk/LICENSE (rev 0) +++ trunk/LICENSE 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. Added: trunk/README =================================================================== --- trunk/README (rev 0) +++ trunk/README 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1,319 @@ +DL-Learner ist a program to learn Description Logic concepts from positive and +negative examples. + +Requirements +============ + +Java 5 is required. No installation is necessary. Just download and extract +DL-Learner. + +Instructions +============ + +Linux (and other systems) + +Make sure the file "dllearner" is executable and run it on the command line +followed by the name of the file to process, e.g. +"./dllearner examples/father.conf". + +Windows: + +Run "dllearner.bat" followed by the name of the file to process, e.g. +"dllearner.bat examples/father.conf". + +All: + +You can use the "java" command to run the program directly. Have a look at +"dllearner" and "dllearner.bat" to see what the command looks like. + +Syntax +====== + +The background knowledge can either be given as OWL DL file (using the import +function in the configuration files) or by specifying it directly in the +configuration file (which we refer to as the internal knowledge base). + +Some examples of the syntax of the background knowledge in the internal +knowledge base: + +person = (male OR female). +mother = (female AND EXISTS hasChild.TOP). +motherManyDaughters = (female AND >= 4 hasChild.female). +(mother AND father) SUBCLASSOF person. + +Also see the example files. + +This is the EBNF description of the input language [slightly outdated]: + +Number = ["1"-"9"] (["0"-"9"])* +Id = ["a"-"z"] (["_","a"-"z","A"-"Z","0"-"9"])* +String: "\"" (~["\"","\\","\n","\r"])* "\"" +Instruction = ConfOption + | FunctionCall + | PosExample + | NegExample + | ABoxConcept + | ABoxRole + | Transitive + | Functional + | Symmetric + | Inverse + | Subrole + | TBoxEquiv + | TBoxSub +ConfOption = Id [ "." Id ] "=" ( Id | Number ) ";" +FunctionCall = Id "(" String ")" ";" +PosExample = "+" Id "(" Id ")" "." +NegExample = "-" Id "(" Id ")" "." +ABoxConcept = Concept "(" Id ")" "." +ABoxRole = Id "(" Id "," Id ")" "." +Transitive = "Transitive" "(" Id ")" "." +Functional = "Functional" "(" Id ")" "." +Symmetric = "Symmetric" "(" Id ")" "." +Inverse = "Inverse" "(" Id "," Id ")" "." +Subrole = "Subrole" "(" Id "," Id ")" "." +TBoxEquiv = Concept "=" Concept "." +TBoxSub = Concept ("SUBCLASSOF" | "SUB" ) Concept "." +Concept = "TOP" + | "BOTTOM" + | Id + | "(" Concept "AND" Concept ")" + | "(" Concept "OR" Concept ")" + | "EXISTS" Id "." Concept + | "ALL" Id "." Concept + | "NOT" Concept + | ">=" Number Id "." Concept + | "<=" Number Id "." Concept + +Configuration Options +===================== + +General +------- + +Option: algorithm +Possible Values: bruteForce, gp, random, refinement, hybridGP +Default: refinement +Effect: Specifies the algorithm to use for solving the learning problem. Note, + that hybridGP is not an algorithm itself, but starts the GP algorithm + with a sensible set of default values for the hybrid algorithm combining + GP with refinement operators. In particular the probability of all + operators except refinement is set to 0. + +Option: reasoner +Possible Values: dig, kaon2, fastRetrieval +Default: dig +Effect: Specifies the reasoner to be used. DIG communicates with a reasoner + using the DIG Interface. KAON2 means to use the KAON2 Java API directly. + FastRetrieval is an internal algorithm, which can only be used for + retrieval (not for subsumption). Currently the DIG reasoner cannot read + OWL files. + +Option: digReasonerURL +Possible Values: a valid URL +Default: http://localhost:8081 +Effect: Specifies the URL to be used to look for a DIG capable reasoner. + +Option: writeDIGProtocol +Possible Values: true, false +Default: false +Effect: Specifies whether to store all DIG communication. + +Option: digProtocolFile +Possible Values: strings +Default: digProtocol.txt +Effect: The file to store all DIG communication if writeDIGProtocol is true. + +Option: useRetrievalForClassification +Possible Values: true, false +Default: false +Effect: To measure which concepts are covered, one can either use one retrieval + or several instance checks (at most one for each example). This option + controls which of both options should be used. + +Option: percentPerLengthUnit +Possible Values: 0-1 +Default: 0.05 +Effect: How much percent (wrt classification accuracy) can a concept be worse to + justify an increase in length of 1. This variable is used for GP and in + refinement when the flexible heuristic is used. For GP, you should use a + value smaller than the default. + +> general options below are ignored < +> by the refinement operator algorithm < + +Option: accuracyPenalty +Possible Values: 1-1000 +Default: 1 +Effect: Sets the penalty for "small misclassifications". + +Option: errorPenalty +Possible Values: 1-1000 +Default: 3 +Effect: Sets the penalty for classification errors. + +Option: maxLength +Possible Values: 1-20 +Default: 7 +Effect: For the brute force learner this specifies the depth limit for the + search. The GP learner currently ignores it. + +Option: scoreMethod +Possible Values: full, positive +Default: positive +Effect: The positive score method ignores if a negative examples cannot be + classified. This is often usefull, because of the limited expressiveness + of SHIQ wrt. negated role assertions. The full method penalizes this. + +Option: showCorrectClassifications +Possible Values: true, false +Default: false +Effect: Controls if correct classifications are printed (does not effect the + algorithm). + +Option: penalizeNeutralExamples +Possible Values: true, false +Default: false +Effect: If true there is a penalty if a neutral (neither positive nor negative) + individual is classified as either positive or negative. This should + usually be set to false. + +Refinement Operator Algorithm Specific +-------------------------------------- + +Option: refinement.horizontalExpansionFactor +Possible Values: 0-1 +Default: 0.6 +Effect: Specifies horizontal expansion factor. + +Option: refinement.writeSearchTree +Possible Values: true, false +Default: false +Effect: Specifies whether to write the search tree to a file. + +Option: refinement.searchTreeFile +Possible Values: strings +Default: "searchTree.txt" +Effect: Specifies a file to save the current search tree after each loop of + the refinement algorithm. + +Option: refinement.heuristic +Possible Values: flexible, lexicographic +Default: lexicographic +Effect: The refinement operator together with a heuristic yields a learning + algorithm. The lexicographic heuristic uses a lexicographic order of + covered negative examples and horizontal expansion of a node (i.e. + the covered examples are the first criterion, the horizontal expansion + the second criterion). The flexible heuristic computes a combined node + score of both criteria. Note, that the lexicographic needs a horizontal + expansion factor greater than 0 to ensure correctness of the learning + algorithm. + +Option: refinement.quiet +Possible Values: true, false +Default: false +Effect: If set to true, no messages will be shown during the run of the + algorithm (but there will still be startup and summary messages). + +Option: refinement.applyAllFilter +Possible Values: true, false +Default: true +Effect: Specifies wether all equivalences should be used. + +Option: refinement.applyExistsFilter +Possible Values: true, false +Default: true +Effect: Specifies wether exists equivalences should be used. + +Option: refinement.useTooWeakList +Possible Values: true, false +Default: true +Effect: Specifies wether a too weak list should be used to reduce reasoner + requests. + +Option: refinement.useOverlyGeneralList +Possible Values: true, false +Default: true +Effect: Specifies wether an overly general list should be used to reduce + reasoner requests. + +Option: refinement.useShortConceptConstruction +Possible Values: true, false +Default: true +Effect: Specifies wether the algorithm should try to reduce a concept to a + known more general concept to reduce the number of necessary + subsumption checks for the reasoner. + +Option: refinement.useDIGMultiInstanceChecks +Possible Values: never, twoChecks, oneCheck +Default: twoChecks +Effect: The DIG protocol allows to send several queries to a DIG reasoner at + once. [This is automatically done for subsumption tests.] However, + for instance checks this has the disadvantage that it may not be + necessary to send all instance to the DIG reasoner if one of the + positive examples is not covered (meaning that the concept is + classified as too weak). + If the option is set to never, then each instance check is send + separately. + If the option is set to twoChecks, then first all positive examples will + be send in one query. If all of them are covered, i.e. the concept is + not classified as too weak, then all the negative examples are send in + one query. + If the option is set to oneCheck, then all examples will be send in one + query. + +Genetic Programming Specific +---------------------------- + +Option: gp.algorithmType +Possible Values: steadyState, generational +Default: steadyState +Effect: Uses either a steady state (population partly replaced) or generational + (population completely replaced) algorithm. + +Option: gp.elitism +Possible Values: true, false +Default: true +Effect: If true an the GP algorithm uses elitism, i.e. the best individual is + guarenteed to survive. + +Option: gp.numberOfIndividuals +Possible Values: 1-1000000 +Default: 1000 +Effect: Sets the number of individuals in the population. A higher value + improves classification, but is computationally more expensive. + +Option: gp.numberOfSelectedIndividuals +Possible Values: 1-1000000 +Default: 960 +Effect: Sets the number of individuals, which are selected for replacement in a + steady state GP algorithm. + +Option: gp.crossoverPercent +Possible Values: 0-100 +Default: 95 +Effect: The probability that offspring is produced using crossover (in contrast + to simply being copied over to the next generation). + +Option: gp.mutationPercent +Possible Values: 0-100 +Default: 3 +Effect: The probability that offspring is mutated after reproduction. + +Option: gp.hillClimbingPercent +Possible Values: 0-100 +Default: 0 +Effect: The probability that offspring is produced using the hill climbing + operator. + +Option: gp.refinementPercent +Possible Values: 0-100 +Default: 0 +Effect: The probability that offspring is produced using the genetic refinement + operator. + +Option: gp.postConvergenceGenerations +Possible Values: 10-1000 +Default: 50 +Effect: If the algorithm does not find a better solution for this number of + generations it stops. \ No newline at end of file Property changes on: trunk/README ___________________________________________________________________ Name: svn:executable + * Added: trunk/bin/dllearner =================================================================== --- trunk/bin/dllearner (rev 0) +++ trunk/bin/dllearner 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.parser.DLLearner $@ Property changes on: trunk/bin/dllearner ___________________________________________________________________ Name: svn:executable + * Added: trunk/bin/dllearner.bat =================================================================== --- trunk/bin/dllearner.bat (rev 0) +++ trunk/bin/dllearner.bat 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.parser.DLLearner %* Property changes on: trunk/bin/dllearner.bat ___________________________________________________________________ Name: svn:executable + * Added: trunk/bin/quickstart =================================================================== --- trunk/bin/quickstart (rev 0) +++ trunk/bin/quickstart 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .:lib:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.QuickStart Property changes on: trunk/bin/quickstart ___________________________________________________________________ Name: svn:executable + * Added: trunk/bin/quickstart.bat =================================================================== --- trunk/bin/quickstart.bat (rev 0) +++ trunk/bin/quickstart.bat 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .;lib;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.QuickStart Added: trunk/bin/ws =================================================================== --- trunk/bin/ws (rev 0) +++ trunk/bin/ws 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.server.DLLearnerWSStart $@ Property changes on: trunk/bin/ws ___________________________________________________________________ Name: svn:executable + * Added: trunk/bin/ws.bat =================================================================== --- trunk/bin/ws.bat (rev 0) +++ trunk/bin/ws.bat 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1 @@ +java -cp .;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.server.DLLearnerWSStart %* Property changes on: trunk/bin/ws.bat ___________________________________________________________________ Name: svn:executable + * Added: trunk/build.xml =================================================================== --- trunk/build.xml (rev 0) +++ trunk/build.xml 2007-08-20 10:43:47 UTC (rev 2) @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project basedir="." default="build" name="dl_learner"> + + <property name="kaon2" value="lib/kaon2.jar"/> + <property name="xbean" value="lib/xbean.jar"/> + <property name="dig1.1_xmlbeans" value="lib/dig1.1-xmlbeans.jar"/> + + <!-- Jena --> + <property name="jena" value="lib/jena/jena.jar"/> + + <path id="classpath"> + <pathelement location="."/> + <pathelement location="${kaon2}"/> + <pathelement location="${xbean}"/> + <pathelement location="${dig1.1_xmlbeans}"/> + <pathelement location="${jena}"/> + <pathelement location="lib/owlapi/owlapi-api.jar"/> + <pathelement location="lib/owlapi/owlapi-apibinding.jar"/> + <pathelement location="lib/owlapi/owlapi-dig1_1.jar"/> + </path> + + <target name="build"> + <tstamp> + <format property="today" pattern="yyyy-MM-dd" locale="en" /> + </tstamp> + <property name="version_dir" value="dllearner-${today}" /> + <property name="release_tmp_dir" value="release/${version_dir}" /> + <!-- Java-Datei mit Build schreiben --> + <echo file="org/dllearner/Info.java" append="false"> +// File is updated automatically when a new version is created +package org.dllearner; + +public class Info { + public static final String build = "${today}"; +} + </echo> + <!-- Projekt in temporäres Verzeichnis compilieren --> + <mkdir dir="classes"/> + <javac destdir="classes"> + <src path="."/> + <classpath refid="classpath"/> + </javac> + <!-- altes Release löschen und neues erstellen --> + <mkdir dir="${release_tmp_dir}"/> + <mkdir dir="${release_tmp_dir}/lib/"/> + <jar jarfile="${release_tmp_dir}/lib/dllearner.jar"> + <fileset dir="classes"/> + </jar> + <delete dir="classes"/> + <copy file="${kaon2}" todir="${release_tmp_dir}/lib/" /> + <copy file="${xbean}" todir="${release_tmp_dir}/lib/" /> + <copy file="${dig1.1_xmlbeans}" todir="${release_tmp_dir}/lib/" /> + <copy toDir="${release_tmp_dir}/lib/jena/"> + <fileset dir="lib/jena/"/> + </copy> + <copy toDir="${release_tmp_dir}/lib/owlapi/"> + <fileset dir="lib/owlapi/"/> + </copy> + <copy toDir="${release_tmp_dir}/lib/modules/"> + <fileset dir="lib/modules/"/> + </copy> + <copy toDir="${release_tmp_dir}"> + <fileset dir="files"/> + </copy> + <!-- nicht notwendig + <chmod file="${release_tmp_dir}/dllearner" perm="755"/> + <chmod file="${release_tmp_dir}/quickstart" perm="755"/> + --> + <!-- Datei mit Datum des Builds schreiben --> + <!-- (today wird schon weiter oben definiert) + <tstamp> + <format property="today" pattern="yyyy-MM-dd" locale="en" /> + </tstamp> + --> + <echo file="${release_tmp_dir}/build.txt" append="false">DL-Leaner Build ${today}</echo> + <!-- tar.bz2 erzeugen (zip würde auch gehen, aber kann keine Dateien mit + execute-Erlaubnis speichern, bz2 ist hier nur unswesentlich besser, aber langsamer) --> + <tar destfile="dllearner_${today}.tar.gz" compression="gzip"> + <!-- Extraset für ausführbare Dateien --> + <tarfileset dir="release/" mode="755"> + <include name="${version_dir}/dllearner" /> + <include name="${version_dir}/quickstart" /> + <include name="${version_dir}/ws" /> + </tarfileset> + <tarfileset dir="release/"> + <exclude name="${version_dir}/dllearner"/> + <exclude name="${version_dir}/quickstart" /> + <exclude name="${version_dir}/quickstart" /> + </tarfileset> + </tar> + <!-- kopieren des Quellcodes --> + <mkdir dir="${release_tmp_dir}/src/"/> + <copy toDir="${release_tmp_dir}/src/"> + <fileset dir="." includes="**/*.java,**/*.jjt,build.xml"/> + </copy> + <!-- Backup erstellen (enthält zusätzlich Quellcode) --> + <tar destfile="backup_dllearner_${today}.tar.gz" compression="gzip"> + <tarfileset dir="release/" mode="755"> + <include name="${version_dir}/dllearner" /> + <include name="${version_dir}/quickstart" /> + </tarfileset> + <tarfileset dir="release/"> + <exclude name="${version_dir}/dllearner"/> + <exclude name="${version_dir}/quickstart" /> + </tarfileset> + </tar> + <delete dir="release"/> + </target> + +</project> Property changes on: trunk/build.xml ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-20 16:20:54
|
Revision: 12 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=12&view=rev Author: jenslehmann Date: 2007-08-20 09:20:51 -0700 (Mon, 20 Aug 2007) Log Message: ----------- added Eclipse classpath and project files Added Paths: ----------- trunk/.classpath trunk/.project Added: trunk/.classpath =================================================================== --- trunk/.classpath (rev 0) +++ trunk/.classpath 2007-08-20 16:20:51 UTC (rev 12) @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/dl-learner"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="/dl_learner/lib/dig1.1-xmlbeans.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/kaon2.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/xbean.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/antlr-2.7.5.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/commons-logging.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/concurrent.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/icu4j_3_4.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/iri.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/jena.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/jena/xercesImpl.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/antlr-runtime-3.0.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/commons-lang-2.2.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-api.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-apibinding.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-change.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-debugging.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-dig1_1.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-functionalparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-functionalrenderer.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-impl.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-krssparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-mansyntaxparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-mansyntaxrenderer.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-metrics.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-oboparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-owlxmlparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-owlxmlrenderer.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-rdfapi.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-rdfxmlparser.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-rdfxmlrenderer.jar"/> + <classpathentry kind="lib" path="/dl_learner/lib/owlapi/owlapi-util.jar"/> + <classpathentry kind="output" path="classes"/> +</classpath> Added: trunk/.project =================================================================== --- trunk/.project (rev 0) +++ trunk/.project 2007-08-20 16:20:51 UTC (rev 12) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>DL-Learner-SVN</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-22 15:53:30
|
Revision: 23 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=23&view=rev Author: jenslehmann Date: 2007-08-22 08:53:11 -0700 (Wed, 22 Aug 2007) Log Message: ----------- added resource section with some images Added Paths: ----------- trunk/resources/ trunk/resources/father_example.png trunk/resources/father_example_small.png trunk/resources/logos/ trunk/resources/logos/logo1.png Added: trunk/resources/father_example.png =================================================================== (Binary files differ) Property changes on: trunk/resources/father_example.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/resources/father_example_small.png =================================================================== (Binary files differ) Property changes on: trunk/resources/father_example_small.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/resources/logos/logo1.png =================================================================== (Binary files differ) Property changes on: trunk/resources/logos/logo1.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2007-08-23 09:29:34
|
Revision: 37 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=37&view=rev Author: kurzum Date: 2007-08-23 02:29:30 -0700 (Thu, 23 Aug 2007) Log Message: ----------- Modified Paths: -------------- trunk/build.xml trunk/wsgen.xml Property Changed: ---------------- trunk/library/ Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2007-08-23 09:03:51 UTC (rev 36) +++ trunk/build.xml 2007-08-23 09:29:30 UTC (rev 37) @@ -4,6 +4,7 @@ <!-- directory settings --> <property name="lib_dir" value="library" /> <property name="source_dir" value="src/dl-learner" /> + <property name="class_dir" value="classes" /> <tstamp> <format property="today" pattern="yyyy-MM-dd" locale="en" /> </tstamp> @@ -107,4 +108,14 @@ <delete dir="release"/> </target> + <target name="wsgen" > + <exec dir="${source_dir}" executable="wsgen"> + <arg value="-keep"/> + <arg value="-verbose"/> + <arg value="-cp"/> + <arg value=".;../../library/dig1.1-xmlbeans.jar;../../library/kaon2.jar;../../library/xbean.jar;../../library/owlapi/;../../library/owlapi/antlr-runtime-3.0.jar;../../library/owlapi/commons-lang-2.2.jar;../../library/owlapi/owlapi-api.jar;../../library/owlapi/owlapi-apibinding.jar;../../library/owlapi/owlapi-change.jar;../../library/owlapi/owlapi-debugging.jar;../../library/owlapi/owlapi-dig1_1.jar;../../library/owlapi/owlapi-functionalparser.jar;../../library/owlapi/owlapi-functionalrenderer.jar;../../library/owlapi/owlapi-impl.jar;../../library/owlapi/owlapi-krssparser.jar;../../library/owlapi/owlapi-mansyntaxparser.jar;../../library/owlapi/owlapi-mansyntaxrenderer.jar;../../library/owlapi/owlapi-metrics.jar;../../library/owlapi/owlapi-oboparser.jar;../../library/owlapi/owlapi-owlxmlparser.jar;../../library/owlapi/owlapi-owlxmlrenderer.jar;../../library/owlapi/owlapi-rdfapi.jar;../../library/owlapi/owlapi-rdfxmlparser.jar;../../library/owlapi/owlapi-rdfxmlrenderer.jar;../../library/owlapi/owlapi-util.jar"/> + <arg value="org.dllearner.server.DLLearnerWS"/> + </exec> + </target> + </project> Property changes on: trunk/library ___________________________________________________________________ Name: svn:ignore + kaon2.jar Modified: trunk/wsgen.xml =================================================================== --- trunk/wsgen.xml 2007-08-23 09:03:51 UTC (rev 36) +++ trunk/wsgen.xml 2007-08-23 09:29:30 UTC (rev 37) @@ -1,14 +1,33 @@ <?xml version="1.0" encoding="UTF-8"?> <project default="wsgen"> - <!-- does not work yet --> + <target name="wsgen" > + <exec dir="src/dl-learner" executable="wsgen"> + <arg value="-keep"/> + <arg value="-verbose"/> + <arg value="-cp"/> + <arg value=".;../../library/dig1.1-xmlbeans.jar;../../library/kaon2.jar;../../library/xbean.jar;../../library/owlapi/;../../library/owlapi/antlr-runtime-3.0.jar;../../library/owlapi/commons-lang-2.2.jar;../../library/owlapi/owlapi-api.jar;../../library/owlapi/owlapi-apibinding.jar;../../library/owlapi/owlapi-change.jar;../../library/owlapi/owlapi-debugging.jar;../../library/owlapi/owlapi-dig1_1.jar;../../library/owlapi/owlapi-functionalparser.jar;../../library/owlapi/owlapi-functionalrenderer.jar;../../library/owlapi/owlapi-impl.jar;../../library/owlapi/owlapi-krssparser.jar;../../library/owlapi/owlapi-mansyntaxparser.jar;../../library/owlapi/owlapi-mansyntaxrenderer.jar;../../library/owlapi/owlapi-metrics.jar;../../library/owlapi/owlapi-oboparser.jar;../../library/owlapi/owlapi-owlxmlparser.jar;../../library/owlapi/owlapi-owlxmlrenderer.jar;../../library/owlapi/owlapi-rdfapi.jar;../../library/owlapi/owlapi-rdfxmlparser.jar;../../library/owlapi/owlapi-rdfxmlrenderer.jar;../../library/owlapi/owlapi-util.jar"/> + <arg value="org.dllearner.server.DLLearnerWS"/> + </exec> + </target> + + + <!-- does not work yet <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" /> <target name="wsgen"> <wsgen - sei="org.dllearner.server.DLLearnerWS" + sei="org.dllearner.server.DLLearnerWS" + sourcedestdir="${source_dir}/org/dllearner/server/jaxws" + destdir="${class_dir}/org/dllearner/server/jaxws" keep="true" verbose="true"> + <classpath refid="org.dllearner.server.*"/> </wsgen> </target> + + + --> + + </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-23 10:21:34
|
Revision: 38 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=38&view=rev Author: jenslehmann Date: 2007-08-23 03:21:33 -0700 (Thu, 23 Aug 2007) Log Message: ----------- added wsgen for Linux Modified Paths: -------------- trunk/build.xml Removed Paths: ------------- trunk/wsgen.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2007-08-23 09:29:30 UTC (rev 37) +++ trunk/build.xml 2007-08-23 10:21:33 UTC (rev 38) @@ -108,14 +108,24 @@ <delete dir="release"/> </target> - <target name="wsgen" > + <target name="wsgen_windows" > <exec dir="${source_dir}" executable="wsgen"> <arg value="-keep"/> <arg value="-verbose"/> <arg value="-cp"/> - <arg value=".;../../library/dig1.1-xmlbeans.jar;../../library/kaon2.jar;../../library/xbean.jar;../../library/owlapi/;../../library/owlapi/antlr-runtime-3.0.jar;../../library/owlapi/commons-lang-2.2.jar;../../library/owlapi/owlapi-api.jar;../../library/owlapi/owlapi-apibinding.jar;../../library/owlapi/owlapi-change.jar;../../library/owlapi/owlapi-debugging.jar;../../library/owlapi/owlapi-dig1_1.jar;../../library/owlapi/owlapi-functionalparser.jar;../../library/owlapi/owlapi-functionalrenderer.jar;../../library/owlapi/owlapi-impl.jar;../../library/owlapi/owlapi-krssparser.jar;../../library/owlapi/owlapi-mansyntaxparser.jar;../../library/owlapi/owlapi-mansyntaxrenderer.jar;../../library/owlapi/owlapi-metrics.jar;../../library/owlapi/owlapi-oboparser.jar;../../library/owlapi/owlapi-owlxmlparser.jar;../../library/owlapi/owlapi-owlxmlrenderer.jar;../../library/owlapi/owlapi-rdfapi.jar;../../library/owlapi/owlapi-rdfxmlparser.jar;../../library/owlapi/owlapi-rdfxmlrenderer.jar;../../library/owlapi/owlapi-util.jar"/> + <arg value=".;../../classes;../../library/dig1.1-xmlbeans.jar;../../library/kaon2.jar;../../library/xbean.jar;../../library/owlapi/;../../library/owlapi/antlr-runtime-3.0.jar;../../library/owlapi/commons-lang-2.2.jar;../../library/owlapi/owlapi-api.jar;../../library/owlapi/owlapi-apibinding.jar;../../library/owlapi/owlapi-change.jar;../../library/owlapi/owlapi-debugging.jar;../../library/owlapi/owlapi-dig1_1.jar;../../library/owlapi/owlapi-functionalparser.jar;../../library/owlapi/owlapi-functionalrenderer.jar;../../library/owlapi/owlapi-impl.jar;../../library/owlapi/owlapi-krssparser.jar;../../library/owlapi/owlapi-mansyntaxparser.jar;../../library/owlapi/owlapi-mansyntaxrenderer.jar;../../library/owlapi/owlapi-metrics.jar;../../library/owlapi/owlapi-oboparser.jar;../../library/owlapi/owlapi-owlxmlparser.jar;../../library/owlapi/owlapi-owlxmlrenderer.jar;../../library/owlapi/owlapi-rdfapi.jar;../../library/owlapi/owlapi-rdfxmlparser.jar;../../library/owlapi/owlapi-rdfxmlrenderer.jar;../../library/owlapi/owlapi-util.jar"/> <arg value="org.dllearner.server.DLLearnerWS"/> </exec> </target> + <target name="wsgen_linux" > + <exec dir="${source_dir}" executable="wsgen"> + <arg value="-keep"/> + <arg value="-verbose"/> + <arg value="-cp"/> + <arg value=".:../../classes/:../../library/dig1.1-xmlbeans.jar:../../library/kaon2.jar:../../library/xbean.jar:../../library/owlapi/:../../library/owlapi/antlr-runtime-3.0.jar:../../library/owlapi/commons-lang-2.2.jar:../../library/owlapi/owlapi-api.jar:../../library/owlapi/owlapi-apibinding.jar:../../library/owlapi/owlapi-change.jar:../../library/owlapi/owlapi-debugging.jar:../../library/owlapi/owlapi-dig1_1.jar:../../library/owlapi/owlapi-functionalparser.jar:../../library/owlapi/owlapi-functionalrenderer.jar:../../library/owlapi/owlapi-impl.jar:../../library/owlapi/owlapi-krssparser.jar:../../library/owlapi/owlapi-mansyntaxparser.jar:../../library/owlapi/owlapi-mansyntaxrenderer.jar:../../library/owlapi/owlapi-metrics.jar:../../library/owlapi/owlapi-oboparser.jar:../../library/owlapi/owlapi-owlxmlparser.jar:../../library/owlapi/owlapi-owlxmlrenderer.jar:../../library/owlapi/owlapi-rdfapi.jar:../../library/owlapi/owlapi-rdfxmlparser.jar:../../library/owlapi/owlapi-rdfxmlrenderer.jar:../../library/owlapi/owlapi-util.jar"/> + <arg value="org.dllearner.server.DLLearnerWS"/> + </exec> + </target> + </project> Deleted: trunk/wsgen.xml =================================================================== --- trunk/wsgen.xml 2007-08-23 09:29:30 UTC (rev 37) +++ trunk/wsgen.xml 2007-08-23 10:21:33 UTC (rev 38) @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project default="wsgen"> - - <target name="wsgen" > - <exec dir="src/dl-learner" executable="wsgen"> - <arg value="-keep"/> - <arg value="-verbose"/> - <arg value="-cp"/> - <arg value=".;../../library/dig1.1-xmlbeans.jar;../../library/kaon2.jar;../../library/xbean.jar;../../library/owlapi/;../../library/owlapi/antlr-runtime-3.0.jar;../../library/owlapi/commons-lang-2.2.jar;../../library/owlapi/owlapi-api.jar;../../library/owlapi/owlapi-apibinding.jar;../../library/owlapi/owlapi-change.jar;../../library/owlapi/owlapi-debugging.jar;../../library/owlapi/owlapi-dig1_1.jar;../../library/owlapi/owlapi-functionalparser.jar;../../library/owlapi/owlapi-functionalrenderer.jar;../../library/owlapi/owlapi-impl.jar;../../library/owlapi/owlapi-krssparser.jar;../../library/owlapi/owlapi-mansyntaxparser.jar;../../library/owlapi/owlapi-mansyntaxrenderer.jar;../../library/owlapi/owlapi-metrics.jar;../../library/owlapi/owlapi-oboparser.jar;../../library/owlapi/owlapi-owlxmlparser.jar;../../library/owlapi/owlapi-owlxmlrenderer.jar;../../library/owlapi/owlapi-rdfapi.jar;../../library/owlapi/owlapi-rdfxmlparser.jar;../../library/owlapi/owlapi-rdfxmlrenderer.jar;../../library/owlapi/owlapi-util.jar"/> - <arg value="org.dllearner.server.DLLearnerWS"/> - </exec> - </target> - - - <!-- does not work yet - <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" /> - - <target name="wsgen"> - <wsgen - sei="org.dllearner.server.DLLearnerWS" - sourcedestdir="${source_dir}/org/dllearner/server/jaxws" - destdir="${class_dir}/org/dllearner/server/jaxws" - keep="true" - verbose="true"> - <classpath refid="org.dllearner.server.*"/> - </wsgen> - </target> - - - --> - - -</project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-24 10:05:17
|
Revision: 44 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=44&view=rev Author: jenslehmann Date: 2007-08-24 03:05:08 -0700 (Fri, 24 Aug 2007) Log Message: ----------- moved classpath and project files such that they do not cause conflict when local changes are performed Added Paths: ----------- trunk/classpath.dist trunk/project.dist Removed Paths: ------------- trunk/.classpath trunk/.project Deleted: trunk/.classpath =================================================================== --- trunk/.classpath 2007-08-23 14:19:10 UTC (rev 43) +++ trunk/.classpath 2007-08-24 10:05:08 UTC (rev 44) @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src/dl-learner"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="lib" path="library/dig1.1-xmlbeans.jar"/> - <classpathentry kind="lib" path="library/kaon2.jar"/> - <classpathentry kind="lib" path="library/xbean.jar"/> - <classpathentry kind="lib" path="library/jena/antlr-2.7.5.jar"/> - <classpathentry kind="lib" path="library/jena/commons-logging.jar"/> - <classpathentry kind="lib" path="library/jena/concurrent.jar"/> - <classpathentry kind="lib" path="library/jena/icu4j_3_4.jar"/> - <classpathentry kind="lib" path="library/jena/iri.jar"/> - <classpathentry kind="lib" path="library/jena/jena.jar"/> - <classpathentry kind="lib" path="library/jena/xercesImpl.jar"/> - <classpathentry kind="lib" path="library/modules/sparqlModule.jar"/> - <classpathentry kind="lib" path="library/owlapi/antlr-runtime-3.0.jar"/> - <classpathentry kind="lib" path="library/owlapi/commons-lang-2.2.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-api.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-apibinding.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-change.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-debugging.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-dig1_1.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-functionalparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-functionalrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-impl.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-krssparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-metrics.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-oboparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfapi.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-util.jar"/> - <classpathentry kind="output" path="classes"/> -</classpath> Deleted: trunk/.project =================================================================== --- trunk/.project 2007-08-23 14:19:10 UTC (rev 43) +++ trunk/.project 2007-08-24 10:05:08 UTC (rev 44) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>DL-Learner-SVN</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> Copied: trunk/classpath.dist (from rev 43, trunk/.classpath) =================================================================== --- trunk/classpath.dist (rev 0) +++ trunk/classpath.dist 2007-08-24 10:05:08 UTC (rev 44) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/dl-learner"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="library/dig1.1-xmlbeans.jar"/> + <classpathentry kind="lib" path="library/kaon2.jar"/> + <classpathentry kind="lib" path="library/xbean.jar"/> + <classpathentry kind="lib" path="library/jena/antlr-2.7.5.jar"/> + <classpathentry kind="lib" path="library/jena/commons-logging.jar"/> + <classpathentry kind="lib" path="library/jena/concurrent.jar"/> + <classpathentry kind="lib" path="library/jena/icu4j_3_4.jar"/> + <classpathentry kind="lib" path="library/jena/iri.jar"/> + <classpathentry kind="lib" path="library/jena/jena.jar"/> + <classpathentry kind="lib" path="library/jena/xercesImpl.jar"/> + <classpathentry kind="lib" path="library/modules/sparqlModule.jar"/> + <classpathentry kind="lib" path="library/owlapi/antlr-runtime-3.0.jar"/> + <classpathentry kind="lib" path="library/owlapi/commons-lang-2.2.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-api.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-apibinding.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-change.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-debugging.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-dig1_1.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-functionalparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-functionalrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-impl.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-krssparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-metrics.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-oboparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfapi.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-util.jar"/> + <classpathentry kind="output" path="classes"/> +</classpath> Copied: trunk/project.dist (from rev 43, trunk/.project) =================================================================== --- trunk/project.dist (rev 0) +++ trunk/project.dist 2007-08-24 10:05:08 UTC (rev 44) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>DL-Learner-SVN</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-24 10:25:35
|
Revision: 45 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=45&view=rev Author: jenslehmann Date: 2007-08-24 03:25:19 -0700 (Fri, 24 Aug 2007) Log Message: ----------- added ignore flags for .classpath, .project, .settings (Eclipse conf), classes (compiled files) Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/Info.java Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Name: svn:ignore + .settings Modified: trunk/src/dl-learner/org/dllearner/Info.java =================================================================== --- trunk/src/dl-learner/org/dllearner/Info.java 2007-08-24 10:05:08 UTC (rev 44) +++ trunk/src/dl-learner/org/dllearner/Info.java 2007-08-24 10:25:19 UTC (rev 45) @@ -3,6 +3,6 @@ package org.dllearner; public class Info { - public static final String build = "2007-08-17"; + public static final String build = "2007-08-20"; } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-24 11:30:34
|
Revision: 48 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=48&view=rev Author: jenslehmann Date: 2007-08-24 04:30:30 -0700 (Fri, 24 Aug 2007) Log Message: ----------- updated Javadoc script and added CSS file Modified Paths: -------------- trunk/javadoc.xml Added Paths: ----------- trunk/javadoc.css Added: trunk/javadoc.css =================================================================== --- trunk/javadoc.css (rev 0) +++ trunk/javadoc.css 2007-08-24 11:30:30 UTC (rev 48) @@ -0,0 +1,90 @@ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { + background-color: rgb(234, 234, 234); + font-family: trebuchet ms, verdana, tahoma, arial; + font-size: 82%; + color: #3E3E3E; +} +a { + font-weight: bold; + color: rgb(0,0,132); + text-decoration: none; +} +.svnkit { + font-size: 150%; + color: rgb(51, 102, 153); +} + +pre{ + margin: 0px; + padding: 0.5em; + font-size: 100%; + border: 1px solid #ccc; +} + +.javakeyword{ + font-family: Courier New; + color: rgb(127,0,85); + font-weight: bold; + font-size: 100%; +} +.javacomment { + font-family: Courier New; + font-size: 100%; + font-style: normal; + color: rgb(63, 127, 95); +} + +.javacode { + font-family: Courier New; + font-size: 100%; + font-style: normal; + color: black; + background-color: #FFFFFF; + width: 98.4%; +} + +.javastring { + font-family: Courier New; + font-size: 100%; + font-style: normal; + color: rgb(42, 0, 255); +} + +/* Headings */ +h1 { + font-size: 145%; +} + +h3 { + padding-left: 40px; + background: transparent url(info.png) no-repeat left; +} + +a:hover { + color: #CF4705; + text-decoration: underline; +} + +/* Table colors */ +.TableHeadingColor { background: rgb(173,184,217) } +.TableSubHeadingColor { background: rgb(173,184,217) } +.TableRowColor { background: rgb(220, 220, 220) } + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } +.FrameHeadingFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } +.FrameItemFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { font-size: 90%; background-color: #AFCAAF } +.NavBarCell1Rev { background-color: #999933 } +.NavBarFont1 { font-family: Verdana; color:#506474;} +.NavBarFont1Rev { font-family: Verdana; color:#F3EBC6;} + +.NavBarCell2 { font-family: Verdana; background-color: rgb(234, 234, 234);} +.NavBarCell3 { font-family: Verdana; background-color: rgb(234, 234, 234);} + Modified: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-24 11:28:24 UTC (rev 47) +++ trunk/javadoc.xml 2007-08-24 11:30:30 UTC (rev 48) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project default="javadoc"> <target name="javadoc"> - <javadoc access="public" author="true" classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" destdir="doc/javadoc" doctitle="DL-Learner Javadoc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" source="1.5" sourcepath="src/dl-learner" splitindex="true" use="true" version="true"/> + <javadoc access="public" additionalparam=" -docencoding "ISO-8859-1"" author="true" classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" destdir="doc/javadoc" doctitle="DL-Learner Javadoc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" source="1.5" sourcepath="src/dl-learner" splitindex="true" stylesheetfile="javadoc.css" use="true" version="true"/> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-24 12:48:31
|
Revision: 51 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=51&view=rev Author: jenslehmann Date: 2007-08-24 05:48:26 -0700 (Fri, 24 Aug 2007) Log Message: ----------- added some more tweaks to Javadoc (overview file, source linked directly) Modified Paths: -------------- trunk/javadoc.xml Added Paths: ----------- trunk/src/dl-learner/overview.html Modified: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-24 11:39:33 UTC (rev 50) +++ trunk/javadoc.xml 2007-08-24 12:48:26 UTC (rev 51) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project default="javadoc"> <target name="javadoc"> - <javadoc access="public" additionalparam=" -docencoding "ISO-8859-1"" author="true" classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" destdir="doc/javadoc" doctitle="DL-Learner Javadoc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" source="1.5" sourcepath="src/dl-learner" splitindex="true" stylesheetfile="javadoc.css" use="true" version="true"/> + <javadoc access="public" additionalparam=" -docencoding "ISO-8859-1" -windowtitle "DL-Learner Javadoc" -bottom "DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" -linksource" author="true" classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" destdir="doc/javadoc" doctitle="DL-Learner Javadoc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" overview="/home/jl/promotion/dl-learner-svn/trunk/src/dl-learner/overview.html" packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" source="1.5" sourcepath="src/dl-learner" splitindex="true" stylesheetfile="/home/jl/promotion/dl-learner-svn/trunk/javadoc.css" use="true" version="true"/> </target> </project> Added: trunk/src/dl-learner/overview.html =================================================================== --- trunk/src/dl-learner/overview.html (rev 0) +++ trunk/src/dl-learner/overview.html 2007-08-24 12:48:26 UTC (rev 51) @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<html> +<head></head> +<body> +<p>DL-Learner is a tool for supervised Machine Learning in OWL and Description Logics.</p> + +<p> +Project Homepage: <a href="http://dl-learner.org">http://dl-learner.org</a> <br /> +Sourceforge.net Website: <a href="http://sourceforge.net/projects/dl-learner">http://sf.net/projects/dl-learner</a> +</p> + +<p><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=203619&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></p> + +</body> +</html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-24 14:17:39
|
Revision: 53 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=53&view=rev Author: jenslehmann Date: 2007-08-24 07:17:37 -0700 (Fri, 24 Aug 2007) Log Message: ----------- added ToDo taglet Modified Paths: -------------- trunk/javadoc.xml Added Paths: ----------- trunk/src/dl-learner/org/dllearner/utilities/ToDoTaglet.java Modified: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-24 13:00:57 UTC (rev 52) +++ trunk/javadoc.xml 2007-08-24 14:17:37 UTC (rev 53) @@ -22,7 +22,8 @@ linksource="true" bottom="DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" Encoding="ISO-8859-1" - windowtitle="DL-Learner Javadoc" - /> + windowtitle="DL-Learner Javadoc"> + <taglet name="org.dllearner.utilities.ToDoTaglet" path="classes" /> + </javadoc> </target> </project> Added: trunk/src/dl-learner/org/dllearner/utilities/ToDoTaglet.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/ToDoTaglet.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/utilities/ToDoTaglet.java 2007-08-24 14:17:37 UTC (rev 53) @@ -0,0 +1,151 @@ +package org.dllearner.utilities; + +import java.util.Map; + +import com.sun.javadoc.Tag; +import com.sun.tools.doclets.Taglet; + +/** + * Small taglet for showing todo-markers in Javadoc-runs. + * + * Parts of the code are taken from the JDK Javadoc. + * + * @author Jens Lehmann + * + */ +public class ToDoTaglet implements Taglet { + + private static final String NAME = "todo"; + private static final String HEADER = "To Do:"; + + /** + * Return the name of this custom tag. + */ + public String getName() { + return NAME; + } + + /** + * Will return true since <code>@todo</code> + * can be used in field documentation. + * @return true since <code>@todo</code> + * can be used in field documentation and false + * otherwise. + */ + public boolean inField() { + return true; + } + + /** + * Will return true since <code>@todo</code> + * can be used in constructor documentation. + * @return true since <code>@todo</code> + * can be used in constructor documentation and false + * otherwise. + */ + public boolean inConstructor() { + return true; + } + + /** + * Will return true since <code>@todo</code> + * can be used in method documentation. + * @return true since <code>@todo</code> + * can be used in method documentation and false + * otherwise. + */ + public boolean inMethod() { + return true; + } + + /** + * Will return true since <code>@todo</code> + * can be used in method documentation. + * @return true since <code>@todo</code> + * can be used in overview documentation and false + * otherwise. + */ + public boolean inOverview() { + return true; + } + + /** + * Will return true since <code>@todo</code> + * can be used in package documentation. + * @return true since <code>@todo</code> + * can be used in package documentation and false + * otherwise. + */ + public boolean inPackage() { + return true; + } + + /** + * Will return true since <code>@todo</code> + * can be used in type documentation (classes or interfaces). + * @return true since <code>@todo</code> + * can be used in type documentation and false + * otherwise. + */ + public boolean inType() { + return true; + } + + /** + * Will return false since <code>@todo</code> + * is not an inline tag. + * @return false since <code>@todo</code> + * is not an inline tag. + */ + + public boolean isInlineTag() { + return false; + } + + /** + * Register this Taglet. + * @param tagletMap the map to register this tag to. + */ + @SuppressWarnings({"unchecked"}) + public static void register(Map tagletMap) { + ToDoTaglet tag = new ToDoTaglet(); + Taglet t = (Taglet) tagletMap.get(tag.getName()); + if (t != null) { + tagletMap.remove(tag.getName()); + } + tagletMap.put(tag.getName(), tag); + } + + /** + * Given the <code>Tag</code> representation of this custom + * tag, return its string representation. + * @param tag the <code>Tag</code> representation of this custom tag. + */ + public String toString(Tag tag) { + return "<DT><B>" + HEADER + "</B><DD>" + + "<table cellpadding=2 cellspacing=0><tr><td bgcolor=\"#DC8080\">" + + tag.text() + + "</td></tr></table></DD>\n"; + } + + /** + * Given an array of <code>Tag</code>s representing this custom + * tag, return its string representation. + * @param tags the array of <code>Tag</code>s representing of this custom tag. + */ + public String toString(Tag[] tags) { + if (tags.length == 0) { + return null; + } + String result = "\n<DT><B>" + HEADER + "</B><DD>"; + result += "<table cellpadding=2 cellspacing=0><tr><td bgcolor=\"#DC8080\">"; + for (int i = 0; i < tags.length; i++) { + if (i > 0) { + result += ", "; + } + result += tags[i].text(); + } + return result + "</td></tr></table></DD>\n"; + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-26 12:07:40
|
Revision: 59 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=59&view=rev Author: jenslehmann Date: 2007-08-25 09:10:25 -0700 (Sat, 25 Aug 2007) Log Message: ----------- added ignore flag to log directory: in the future the log directory should be used for all kinds of logging actions (search trees, DIG protocol etc.) small improvement in Javadoc build script Modified Paths: -------------- trunk/javadoc.xml Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Name: svn:ignore - .settings .project .classpath classes + .settings .project .classpath classes log Modified: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-25 16:04:07 UTC (rev 58) +++ trunk/javadoc.xml 2007-08-25 16:10:25 UTC (rev 59) @@ -20,7 +20,7 @@ use="true" version="true" linksource="true" - bottom="DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" + bottom="<img style='float:right' src='http://sflogo.sourceforge.net/sflogo.php?group_id=203619&type=1' width='88' height='31' border='0' alt='SourceForge.net Logo' /> DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" Encoding="ISO-8859-1" windowtitle="DL-Learner Javadoc"> <taglet name="org.dllearner.utilities.ToDoTaglet" path="classes" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-27 16:23:25
|
Revision: 69 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=69&view=rev Author: jenslehmann Date: 2007-08-27 09:23:24 -0700 (Mon, 27 Aug 2007) Log Message: ----------- added links to Java 6 online Javadoc Modified Paths: -------------- trunk/javadoc.css trunk/javadoc.xml Modified: trunk/javadoc.css =================================================================== --- trunk/javadoc.css 2007-08-27 15:51:12 UTC (rev 68) +++ trunk/javadoc.css 2007-08-27 16:23:24 UTC (rev 69) @@ -18,13 +18,6 @@ color: rgb(51, 102, 153); } -pre{ - margin: 0px; - padding: 0.5em; - font-size: 100%; - border: 1px solid #ccc; -} - .javakeyword{ font-family: Courier New; color: rgb(127,0,85); @@ -70,8 +63,8 @@ } /* Table colors */ -.TableHeadingColor { background: rgb(173,184,217) } -.TableSubHeadingColor { background: rgb(173,184,217) } +.TableHeadingColor { background: rgb(172,185,216) } +.TableSubHeadingColor { background: rgb(172,185,216) } .TableRowColor { background: rgb(220, 220, 220) } /* Font used in left-hand frame lists */ Modified: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-27 15:51:12 UTC (rev 68) +++ trunk/javadoc.xml 2007-08-27 16:23:24 UTC (rev 69) @@ -24,6 +24,7 @@ Encoding="ISO-8859-1" windowtitle="DL-Learner Javadoc"> <taglet name="org.dllearner.utilities.ToDoTaglet" path="classes" /> + <link href="http://java.sun.com/javase/6/docs/api/"/> </javadoc> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-28 06:55:31
|
Revision: 73 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=73&view=rev Author: jenslehmann Date: 2007-08-27 23:55:29 -0700 (Mon, 27 Aug 2007) Log Message: ----------- merged Javadoc target into main build script Modified Paths: -------------- trunk/build.xml Removed Paths: ------------- trunk/javadoc.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2007-08-27 18:34:10 UTC (rev 72) +++ trunk/build.xml 2007-08-28 06:55:29 UTC (rev 73) @@ -156,4 +156,32 @@ </exec> </target> + <target name="javadoc"> + <javadoc access="public" + author="true" + classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" + destdir="doc/javadoc" + doctitle="DL-Learner Javadoc" + nodeprecated="false" + nodeprecatedlist="false" + noindex="false" + nonavbar="false" + notree="false" + overview="src/dl-learner/overview.html" + packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" + source="1.6" + sourcepath="src/dl-learner" + splitindex="true" + stylesheetfile="/home/jl/promotion/dl-learner-svn/trunk/javadoc.css" + use="true" + version="true" + linksource="true" + bottom="<img style='float:right' src='http://sflogo.sourceforge.net/sflogo.php?group_id=203619&type=1' width='88' height='31' border='0' alt='SourceForge.net Logo' /> DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" + Encoding="ISO-8859-1" + windowtitle="DL-Learner Javadoc"> + <taglet name="org.dllearner.utilities.ToDoTaglet" path="classes" /> + <link href="http://java.sun.com/javase/6/docs/api/"/> + </javadoc> + </target> + </project> Deleted: trunk/javadoc.xml =================================================================== --- trunk/javadoc.xml 2007-08-27 18:34:10 UTC (rev 72) +++ trunk/javadoc.xml 2007-08-28 06:55:29 UTC (rev 73) @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<project default="javadoc"> - <target name="javadoc"> - <javadoc access="public" - author="true" - classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" - destdir="doc/javadoc" - doctitle="DL-Learner Javadoc" - nodeprecated="false" - nodeprecatedlist="false" - noindex="false" - nonavbar="false" - notree="false" - overview="src/dl-learner/overview.html" - packagenames="org.dllearner.reasoning,org.dllearner.dl,org.dllearner.server,org.dllearner,org.dllearner.server.exceptions,org.dllearner.server.jaxws,org.dllearner.algorithms.gp,org.dllearner.parser,org.dllearner.modules,org.dllearner.algorithms,org.dllearner.examples,org.dllearner.utilities,org.dllearner.algorithms.hybridgp,org.dllearner.algorithms.refinement" - source="1.6" - sourcepath="src/dl-learner" - splitindex="true" - stylesheetfile="/home/jl/promotion/dl-learner-svn/trunk/javadoc.css" - use="true" - version="true" - linksource="true" - bottom="<img style='float:right' src='http://sflogo.sourceforge.net/sflogo.php?group_id=203619&type=1' width='88' height='31' border='0' alt='SourceForge.net Logo' /> DL-Learner is licenced under the terms of the GNU General Public License.<br />Copyright &#169; 2007 Jens Lehmann" - Encoding="ISO-8859-1" - windowtitle="DL-Learner Javadoc"> - <taglet name="org.dllearner.utilities.ToDoTaglet" path="classes" /> - <link href="http://java.sun.com/javase/6/docs/api/"/> - </javadoc> - </target> -</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-28 07:05:14
|
Revision: 74 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=74&view=rev Author: jenslehmann Date: 2007-08-28 00:05:06 -0700 (Tue, 28 Aug 2007) Log Message: ----------- added Eclipse code style file moved Eclipse specific stuff to doc/eclipse/ Added Paths: ----------- trunk/doc/eclipse/ trunk/doc/eclipse/classpath.dist trunk/doc/eclipse/eclipse_formatter_codestyle.xml trunk/doc/eclipse/project.dist Removed Paths: ------------- trunk/classpath.dist trunk/project.dist Deleted: trunk/classpath.dist =================================================================== --- trunk/classpath.dist 2007-08-28 06:55:29 UTC (rev 73) +++ trunk/classpath.dist 2007-08-28 07:05:06 UTC (rev 74) @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src/dl-learner"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="lib" path="library/dig1.1-xmlbeans.jar"/> - <classpathentry kind="lib" path="library/kaon2.jar"/> - <classpathentry kind="lib" path="library/xbean.jar"/> - <classpathentry kind="lib" path="library/jena/antlr-2.7.5.jar"/> - <classpathentry kind="lib" path="library/jena/commons-logging.jar"/> - <classpathentry kind="lib" path="library/jena/concurrent.jar"/> - <classpathentry kind="lib" path="library/jena/icu4j_3_4.jar"/> - <classpathentry kind="lib" path="library/jena/iri.jar"/> - <classpathentry kind="lib" path="library/jena/jena.jar"/> - <classpathentry kind="lib" path="library/jena/xercesImpl.jar"/> - <classpathentry kind="lib" path="library/modules/sparqlModule.jar"/> - <classpathentry kind="lib" path="library/owlapi/antlr-runtime-3.0.jar"/> - <classpathentry kind="lib" path="library/owlapi/commons-lang-2.2.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-api.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-apibinding.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-change.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-debugging.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-dig1_1.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-functionalparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-functionalrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-impl.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-krssparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-metrics.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-oboparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfapi.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlparser.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlrenderer.jar"/> - <classpathentry kind="lib" path="library/owlapi/owlapi-util.jar"/> - <classpathentry kind="output" path="classes"/> -</classpath> Copied: trunk/doc/eclipse/classpath.dist (from rev 68, trunk/classpath.dist) =================================================================== --- trunk/doc/eclipse/classpath.dist (rev 0) +++ trunk/doc/eclipse/classpath.dist 2007-08-28 07:05:06 UTC (rev 74) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/dl-learner"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="library/dig1.1-xmlbeans.jar"/> + <classpathentry kind="lib" path="library/kaon2.jar"/> + <classpathentry kind="lib" path="library/xbean.jar"/> + <classpathentry kind="lib" path="library/jena/antlr-2.7.5.jar"/> + <classpathentry kind="lib" path="library/jena/commons-logging.jar"/> + <classpathentry kind="lib" path="library/jena/concurrent.jar"/> + <classpathentry kind="lib" path="library/jena/icu4j_3_4.jar"/> + <classpathentry kind="lib" path="library/jena/iri.jar"/> + <classpathentry kind="lib" path="library/jena/jena.jar"/> + <classpathentry kind="lib" path="library/jena/xercesImpl.jar"/> + <classpathentry kind="lib" path="library/modules/sparqlModule.jar"/> + <classpathentry kind="lib" path="library/owlapi/antlr-runtime-3.0.jar"/> + <classpathentry kind="lib" path="library/owlapi/commons-lang-2.2.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-api.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-apibinding.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-change.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-debugging.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-dig1_1.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-functionalparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-functionalrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-impl.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-krssparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-mansyntaxrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-metrics.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-oboparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-owlxmlrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfapi.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlparser.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-rdfxmlrenderer.jar"/> + <classpathentry kind="lib" path="library/owlapi/owlapi-util.jar"/> + <classpathentry kind="output" path="classes"/> +</classpath> Added: trunk/doc/eclipse/eclipse_formatter_codestyle.xml =================================================================== --- trunk/doc/eclipse/eclipse_formatter_codestyle.xml (rev 0) +++ trunk/doc/eclipse/eclipse_formatter_codestyle.xml 2007-08-28 07:05:06 UTC (rev 74) @@ -0,0 +1,264 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<profiles version="11"> +<profile kind="CodeFormatterProfile" name="DL-Learner" version="11"> +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/> +<setting id="org.eclipse.jdt.core.compiler.source" value="1.5"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="100"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/> +<setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> +<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="tab"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> +<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.5"/> +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.5"/> +<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/> +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> +<setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> +<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> +<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> +</profile> +</profiles> Copied: trunk/doc/eclipse/project.dist (from rev 68, trunk/project.dist) =================================================================== --- trunk/doc/eclipse/project.dist (rev 0) +++ trunk/doc/eclipse/project.dist 2007-08-28 07:05:06 UTC (rev 74) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>DL-Learner-SVN</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Deleted: trunk/project.dist =================================================================== --- trunk/project.dist 2007-08-28 06:55:29 UTC (rev 73) +++ trunk/project.dist 2007-08-28 07:05:06 UTC (rev 74) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>DL-Learner-SVN</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-28 08:13:40
|
Revision: 75 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=75&view=rev Author: jenslehmann Date: 2007-08-28 01:13:35 -0700 (Tue, 28 Aug 2007) Log Message: ----------- moved SPARQL module documentation Added Paths: ----------- trunk/doc/sparqlModule.txt Removed Paths: ------------- trunk/library/modules/sparqlModule.txt Copied: trunk/doc/sparqlModule.txt (from rev 74, trunk/library/modules/sparqlModule.txt) =================================================================== --- trunk/doc/sparqlModule.txt (rev 0) +++ trunk/doc/sparqlModule.txt 2007-08-28 08:13:35 UTC (rev 75) @@ -0,0 +1,245 @@ + + +Algorithm: +========= + +Start with: +java dbpedia.SparqlModule ListOfIndividuals + +ListOfIndividuals= Individual | ListOfIndividuals | {} + +The String[] args of the main method is taken as input at the moment. +This will be changed later, it is only for testing. + +Example: +java dbpedia.SparqlModule http://dbpedia.org/resource/Angela_Merkel http://dbpedia.org/resource/Gerhard_Schr%C3%B6der http://dbpedia.org/resource/Helmut_Kohl http://dbpedia.org/resource/Helmut_Schmidt http://dbpedia.org/resource/Ludwig_Erhard http://dbpedia.org/resource/Willy_Brandt + +See bottom for more examples + +*Sparql-Queries*** + +Example Sparql-Query see Options below for more info about FILTERS: + +SELECT * WHERE { +<http://dbpedia.org/resource/Angela_Merkel> ?predicate ?object. +FILTER( +(!isLiteral(?object)) +&&( !regex(str(?predicate), 'http://www.w3.org/2004/02/skos/core#') ) +&&( !regex(str(?predicate), 'http://xmlns.com/foaf/0.1/') ) +&&( !regex(str(?predicate), 'http://dbpedia.org/property/wikipage-') ) +&&( !regex(str(?predicate), 'http://www.w3.org/2002/07/owl#sameAs') ) +&&( !regex(str(?predicate), 'http://dbpedia.org/property/reference') ) +&&( !regex((?object), 'http://xmlns.com/foaf/0.1/') )).} + + +*Typing*** +DBpedia is not typed at all. +I replaced/added the following to comply to OWL-DL: + +Resources are sorted in three categories (Class, Property, Instance) +(implemented as HashSets) according to their uris +Properties are typed as Properties +Classes see below Options +Instances is what is left + +*Output*** +The Ontology is written to a file System.currentMillisec().nt + + + +*Cache*** +the cache remembers: a timestamp, the original sparql-query, the result +key is the subject http://dbpedia.org/resource/Angela_Merkel which is first urlencoded +and so serves as the hash for the filename. +Cache validates if timestamp too old and Sparql-Query the same +before returning the SPARQL xml-result + + + + + +Options: +======== + +All Options cannot be altered right now, except in the source. +This will be later moved to the constructor. +Default is always used. +Some are marked with "NYI", these are Not Yet Implemented and are just ideas I had. + +Main-Algorithm: +--------------- + +*NumberOfRecursion (int)*** + +how deep will the Ontology be cut out + +Default: ??? not sure 2 at the moment + +*ClassRepeat NYI (int)*** + +Recursion can be increased, if the Object is a class. +This will result in deeper, richer hierarchies + + +Server: +------ + +there are no options planned right now hardcoded with: +dbpedia.openlinksw.com:8890 + + +Sparql-queries: +--------------- + +*SparqlFilterPredicate (String[])*** + +removes all rows with the specified String in the PREDICATE from the ResultSet +(integrated in SPARQL query with FILTER !regex) + +Default: +"http://www.w3.org/2004/02/skos/core#" // conflict: no properties between classes allowed +"http://xmlns.com/foaf/0.1/" //foaf is not well defined/unnecessary +"http://dbpedia.org/property/wikipage-" // foreign wikis -fr -es, etc. +"http://www.w3.org/2002/07/owl#sameAs" // contradicts with owl-dl maybe changed later so it will be replaced by owl:equivalentClass for Classes +"http://dbpedia.org/property/reference" //links to homepages + +*SparqlFilterObject (String[])*** +(integrated in SPARQL query with FILTER !regex) + +removes all rows with the specified String in the OBJECT from the ResultSet + +Default: +http://xmlns.com/foaf/0.1/ //foaf is not well defined/unnecessary + +*useLiterals (boolean)*** +(integrated in SPARQL query with FILTER !isLiteral) + +removes all rows with literals as objects from the ResultSet + +Default: false + + + +Type Information: +----------------- + +options that are used to type resources to retain OWL-DL + +*IsClass (String[])*** + +specifies URI's that can be considered classes (and therefore will be typed as classes) + +Default: +"http://dbpedia.org/resource/Category:" //dbpedia categories +"http://www.w3.org/2004/02/skos/core" // concept +"http://dbpedia.org/class/yago" // yago classes +"http://dbpedia.org/class/" // "yago" is missing in some of the Datasets from DBpedia, +I don't actually know if this is a mistake or on purpose + + +Cache: +------ + + +*freshdays (int)*** + +Determines how many days a cached query stays valid + +Default: 15 days + +*path (String)*** + +path of the cache-folder + +Default: cache + + + +Syntactic Sugar NYI +---------------- +Instead of choosing example individuals to put into main, +it could be nice to choose 2 Categories. +The module automatically downloads the individals for both classes itself, +removes the category from the definiton and then runs the DL-Learner. + + + + + +Examples: +========= + +German Leaders: + +Input: +http://dbpedia.org/resource/Adolf_Hitler http://dbpedia.org/resource/Prince_Chlodwig_zu_HohenloheSchillingsf%C3%BCrst http://dbpedia.org/resource/Prince_Maximilian_of_Baden http://dbpedia.org/resource/Franz_von_Papen http://dbpedia.org/resource/Joseph_Goebbels http://dbpedia.org/resource/Gerhard_Schr%C3%B6der http://dbpedia.org/resource/Angela_Merkel http://dbpedia.org/resource/Helmut_Kohl http://dbpedia.org/resource/Helmut_Schmidt http://dbpedia.org/resource/Ludwig_Erhard http://dbpedia.org/resource/Willy_Brandt + +conf: + ++test("http://dbpedia.org/resource/Adolf_Hitler"). ++test("http://dbpedia.org/resource/Prince_Chlodwig_zu_Hohenlohe-Schillingsf%C3%BCrst"). ++test("http://dbpedia.org/resource/Prince_Maximilian_of_Baden"). ++test("http://dbpedia.org/resource/Franz_von_Papen"). ++test("http://dbpedia.org/resource/Joseph_Goebbels"). ++test("http://dbpedia.org/resource/Gerhard_Schr%C3%B6der"). ++test("http://dbpedia.org/resource/Angela_Merkel"). ++test("http://dbpedia.org/resource/Helmut_Kohl"). ++test("http://dbpedia.org/resource/Helmut_Schmidt"). ++test("http://dbpedia.org/resource/Ludwig_Erhard"). ++test("http://dbpedia.org/resource/Willy_Brandt"). + + +Greek Philosophers: + +Input + + http://dbpedia.org/resource/Socrates http://dbpedia.org/resource/Plato http://dbpedia.org/resource/Pythagoras http://dbpedia.org/resource/Zeno_of_Elea http://dbpedia.org/resource/Democritus http://dbpedia.org/resource/Theophrastus http://dbpedia.org/resource/Anaxagoras http://dbpedia.org/resource/Alexander_the_Great http://dbpedia.org/resource/Hephaestion http://dbpedia.org/resource/Diotima http://dbpedia.org/resource/Nicomachus http://dbpedia.org/resource/Harpalus http://dbpedia.org/resource/Menaechmus + +Conf + ++test("http://dbpedia.org/resource/Socrates"). ++test("http://dbpedia.org/resource/Plato"). ++test("http://dbpedia.org/resource/Pythagoras"). + ++test("http://dbpedia.org/resource/Zeno_of_Elea"). +//was a pre-Socratic Greek philosopher ++test("http://dbpedia.org/resource/Democritus"). +//was a pre-Socratic Greek philosopher +//+test("http://dbpedia.org/resource/Theophrastus"). +//a native of Eressos in Lesbos, was the successor of Aristotle in the Peripatetic school. ++test("http://dbpedia.org/resource/Anaxagoras"). +//was a pre-Socratic Greek philosopher. + +-test("http://dbpedia.org/resource/Alexander_the_Great"). +-test("http://dbpedia.org/resource/Hephaestion"). +//makedonischer Adeliger, der engste Freund, General, Leibw\xE4chter und vielleicht auch Geliebter Alexanders des Gro\xDFen. +-test("http://dbpedia.org/resource/Diotima"). +//ist eine literarische Figur Platons, eine Seherin aus Mantin\xE4a, +-test("http://dbpedia.org/resource/Nicomachus"). +//Nicomachus sp\xE4tantiker r\xF6mischer Schriftsteller und Politiker +-test("http://dbpedia.org/resource/Harpalus"). +//Harpalus was an aristocrat of Macedon and boyhood friend of Alexander the Great +-test("http://dbpedia.org/resource/Menaechmus"). +//was a Greek mathematician and geometer born in Alopeconnesus + + + + + + + + + + + + + + + + + + + + + + Deleted: trunk/library/modules/sparqlModule.txt =================================================================== --- trunk/library/modules/sparqlModule.txt 2007-08-28 07:05:06 UTC (rev 74) +++ trunk/library/modules/sparqlModule.txt 2007-08-28 08:13:35 UTC (rev 75) @@ -1,245 +0,0 @@ - - -Algorithm: -========= - -Start with: -java dbpedia.SparqlModule ListOfIndividuals - -ListOfIndividuals= Individual | ListOfIndividuals | {} - -The String[] args of the main method is taken as input at the moment. -This will be changed later, it is only for testing. - -Example: -java dbpedia.SparqlModule http://dbpedia.org/resource/Angela_Merkel http://dbpedia.org/resource/Gerhard_Schr%C3%B6der http://dbpedia.org/resource/Helmut_Kohl http://dbpedia.org/resource/Helmut_Schmidt http://dbpedia.org/resource/Ludwig_Erhard http://dbpedia.org/resource/Willy_Brandt - -See bottom for more examples - -*Sparql-Queries*** - -Example Sparql-Query see Options below for more info about FILTERS: - -SELECT * WHERE { -<http://dbpedia.org/resource/Angela_Merkel> ?predicate ?object. -FILTER( -(!isLiteral(?object)) -&&( !regex(str(?predicate), 'http://www.w3.org/2004/02/skos/core#') ) -&&( !regex(str(?predicate), 'http://xmlns.com/foaf/0.1/') ) -&&( !regex(str(?predicate), 'http://dbpedia.org/property/wikipage-') ) -&&( !regex(str(?predicate), 'http://www.w3.org/2002/07/owl#sameAs') ) -&&( !regex(str(?predicate), 'http://dbpedia.org/property/reference') ) -&&( !regex((?object), 'http://xmlns.com/foaf/0.1/') )).} - - -*Typing*** -DBpedia is not typed at all. -I replaced/added the following to comply to OWL-DL: - -Resources are sorted in three categories (Class, Property, Instance) -(implemented as HashSets) according to their uris -Properties are typed as Properties -Classes see below Options -Instances is what is left - -*Output*** -The Ontology is written to a file System.currentMillisec().nt - - - -*Cache*** -the cache remembers: a timestamp, the original sparql-query, the result -key is the subject http://dbpedia.org/resource/Angela_Merkel which is first urlencoded -and so serves as the hash for the filename. -Cache validates if timestamp too old and Sparql-Query the same -before returning the SPARQL xml-result - - - - - -Options: -======== - -All Options cannot be altered right now, except in the source. -This will be later moved to the constructor. -Default is always used. -Some are marked with "NYI", these are Not Yet Implemented and are just ideas I had. - -Main-Algorithm: ---------------- - -*NumberOfRecursion (int)*** - -how deep will the Ontology be cut out - -Default: ??? not sure 2 at the moment - -*ClassRepeat NYI (int)*** - -Recursion can be increased, if the Object is a class. -This will result in deeper, richer hierarchies - - -Server: ------- - -there are no options planned right now hardcoded with: -dbpedia.openlinksw.com:8890 - - -Sparql-queries: ---------------- - -*SparqlFilterPredicate (String[])*** - -removes all rows with the specified String in the PREDICATE from the ResultSet -(integrated in SPARQL query with FILTER !regex) - -Default: -"http://www.w3.org/2004/02/skos/core#" // conflict: no properties between classes allowed -"http://xmlns.com/foaf/0.1/" //foaf is not well defined/unnecessary -"http://dbpedia.org/property/wikipage-" // foreign wikis -fr -es, etc. -"http://www.w3.org/2002/07/owl#sameAs" // contradicts with owl-dl maybe changed later so it will be replaced by owl:equivalentClass for Classes -"http://dbpedia.org/property/reference" //links to homepages - -*SparqlFilterObject (String[])*** -(integrated in SPARQL query with FILTER !regex) - -removes all rows with the specified String in the OBJECT from the ResultSet - -Default: -http://xmlns.com/foaf/0.1/ //foaf is not well defined/unnecessary - -*useLiterals (boolean)*** -(integrated in SPARQL query with FILTER !isLiteral) - -removes all rows with literals as objects from the ResultSet - -Default: false - - - -Type Information: ------------------ - -options that are used to type resources to retain OWL-DL - -*IsClass (String[])*** - -specifies URI's that can be considered classes (and therefore will be typed as classes) - -Default: -"http://dbpedia.org/resource/Category:" //dbpedia categories -"http://www.w3.org/2004/02/skos/core" // concept -"http://dbpedia.org/class/yago" // yago classes -"http://dbpedia.org/class/" // "yago" is missing in some of the Datasets from DBpedia, -I don't actually know if this is a mistake or on purpose - - -Cache: ------- - - -*freshdays (int)*** - -Determines how many days a cached query stays valid - -Default: 15 days - -*path (String)*** - -path of the cache-folder - -Default: cache - - - -Syntactic Sugar NYI ----------------- -Instead of choosing example individuals to put into main, -it could be nice to choose 2 Categories. -The module automatically downloads the individals for both classes itself, -removes the category from the definiton and then runs the DL-Learner. - - - - - -Examples: -========= - -German Leaders: - -Input: -http://dbpedia.org/resource/Adolf_Hitler http://dbpedia.org/resource/Prince_Chlodwig_zu_HohenloheSchillingsf%C3%BCrst http://dbpedia.org/resource/Prince_Maximilian_of_Baden http://dbpedia.org/resource/Franz_von_Papen http://dbpedia.org/resource/Joseph_Goebbels http://dbpedia.org/resource/Gerhard_Schr%C3%B6der http://dbpedia.org/resource/Angela_Merkel http://dbpedia.org/resource/Helmut_Kohl http://dbpedia.org/resource/Helmut_Schmidt http://dbpedia.org/resource/Ludwig_Erhard http://dbpedia.org/resource/Willy_Brandt - -conf: - -+test("http://dbpedia.org/resource/Adolf_Hitler"). -+test("http://dbpedia.org/resource/Prince_Chlodwig_zu_Hohenlohe-Schillingsf%C3%BCrst"). -+test("http://dbpedia.org/resource/Prince_Maximilian_of_Baden"). -+test("http://dbpedia.org/resource/Franz_von_Papen"). -+test("http://dbpedia.org/resource/Joseph_Goebbels"). -+test("http://dbpedia.org/resource/Gerhard_Schr%C3%B6der"). -+test("http://dbpedia.org/resource/Angela_Merkel"). -+test("http://dbpedia.org/resource/Helmut_Kohl"). -+test("http://dbpedia.org/resource/Helmut_Schmidt"). -+test("http://dbpedia.org/resource/Ludwig_Erhard"). -+test("http://dbpedia.org/resource/Willy_Brandt"). - - -Greek Philosophers: - -Input - - http://dbpedia.org/resource/Socrates http://dbpedia.org/resource/Plato http://dbpedia.org/resource/Pythagoras http://dbpedia.org/resource/Zeno_of_Elea http://dbpedia.org/resource/Democritus http://dbpedia.org/resource/Theophrastus http://dbpedia.org/resource/Anaxagoras http://dbpedia.org/resource/Alexander_the_Great http://dbpedia.org/resource/Hephaestion http://dbpedia.org/resource/Diotima http://dbpedia.org/resource/Nicomachus http://dbpedia.org/resource/Harpalus http://dbpedia.org/resource/Menaechmus - -Conf - -+test("http://dbpedia.org/resource/Socrates"). -+test("http://dbpedia.org/resource/Plato"). -+test("http://dbpedia.org/resource/Pythagoras"). - -+test("http://dbpedia.org/resource/Zeno_of_Elea"). -//was a pre-Socratic Greek philosopher -+test("http://dbpedia.org/resource/Democritus"). -//was a pre-Socratic Greek philosopher -//+test("http://dbpedia.org/resource/Theophrastus"). -//a native of Eressos in Lesbos, was the successor of Aristotle in the Peripatetic school. -+test("http://dbpedia.org/resource/Anaxagoras"). -//was a pre-Socratic Greek philosopher. - --test("http://dbpedia.org/resource/Alexander_the_Great"). --test("http://dbpedia.org/resource/Hephaestion"). -//makedonischer Adeliger, der engste Freund, General, Leibw\xE4chter und vielleicht auch Geliebter Alexanders des Gro\xDFen. --test("http://dbpedia.org/resource/Diotima"). -//ist eine literarische Figur Platons, eine Seherin aus Mantin\xE4a, --test("http://dbpedia.org/resource/Nicomachus"). -//Nicomachus sp\xE4tantiker r\xF6mischer Schriftsteller und Politiker --test("http://dbpedia.org/resource/Harpalus"). -//Harpalus was an aristocrat of Macedon and boyhood friend of Alexander the Great --test("http://dbpedia.org/resource/Menaechmus"). -//was a Greek mathematician and geometer born in Alopeconnesus - - - - - - - - - - - - - - - - - - - - - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-28 11:13:36
|
Revision: 81 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=81&view=rev Author: jenslehmann Date: 2007-08-28 04:13:25 -0700 (Tue, 28 Aug 2007) Log Message: ----------- renamed library folder to lib Added Paths: ----------- trunk/lib/ Removed Paths: ------------- trunk/library/ Copied: trunk/lib (from rev 80, trunk/library) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2007-08-28 11:42:41
|
Revision: 84 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=84&view=rev Author: kurzum Date: 2007-08-28 04:42:35 -0700 (Tue, 28 Aug 2007) Log Message: ----------- changes Modified Paths: -------------- trunk/bin/dllearner trunk/bin/dllearner.bat trunk/bin/quickstart trunk/bin/quickstart.bat trunk/bin/ws trunk/bin/ws.bat trunk/build.xml Modified: trunk/bin/dllearner =================================================================== --- trunk/bin/dllearner 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/dllearner 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.parser.DLLearner $@ +java -cp /Programme/Java/eclipse/workspace/DL-Learner-SVN:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dig1.1-xmlbeans.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/antlr-2.7.5.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/commons-logging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/concurrent.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/icu4j_3_4.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/iri.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/jena.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/xercesImpl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/kaon2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/modules/sparqlModule.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/antlr-runtime-3.0.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/commons-lang-2.2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-api.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-apibinding.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-change.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-debugging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-dig1_1.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-impl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-krssparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-metrics.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-oboparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfapi.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-util.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/xbean.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dllearner.jar org.dllearner.parser.DLLearner $@ \ No newline at end of file Modified: trunk/bin/dllearner.bat =================================================================== --- trunk/bin/dllearner.bat 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/dllearner.bat 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.parser.DLLearner %* +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.parser.DLLearner %* \ No newline at end of file Modified: trunk/bin/quickstart =================================================================== --- trunk/bin/quickstart 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/quickstart 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .:lib:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.QuickStart +java -cp /Programme/Java/eclipse/workspace/DL-Learner-SVN:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dig1.1-xmlbeans.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/antlr-2.7.5.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/commons-logging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/concurrent.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/icu4j_3_4.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/iri.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/jena.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/xercesImpl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/kaon2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/modules/sparqlModule.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/antlr-runtime-3.0.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/commons-lang-2.2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-api.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-apibinding.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-change.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-debugging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-dig1_1.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-impl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-krssparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-metrics.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-oboparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfapi.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-util.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/xbean.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dllearner.jar org.dllearner.QuickStart \ No newline at end of file Modified: trunk/bin/quickstart.bat =================================================================== --- trunk/bin/quickstart.bat 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/quickstart.bat 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .;lib;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.QuickStart +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.QuickStart \ No newline at end of file Modified: trunk/bin/ws =================================================================== --- trunk/bin/ws 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/ws 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .:lib/dllearner.jar:lib/kaon2.jar:lib/dig1.1-xmlbeans.jar:lib/xbean.jar:lib/jena/antlr-2.7.5.jar:lib/jena/commons-logging.jar:lib/jena/concurrent.jar:lib/jena/icu4j_3_4.jar:lib/jena/iri.jar:lib/jena/jena.jar:lib/jena/xercesImpl.jar org.dllearner.server.DLLearnerWSStart $@ +java -cp /Programme/Java/eclipse/workspace/DL-Learner-SVN:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dig1.1-xmlbeans.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/antlr-2.7.5.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/commons-logging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/concurrent.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/icu4j_3_4.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/iri.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/jena.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/jena/xercesImpl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/kaon2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/modules/sparqlModule.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/antlr-runtime-3.0.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/commons-lang-2.2.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-api.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-apibinding.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-change.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-debugging.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-dig1_1.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-functionalrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-impl.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-krssparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-mansyntaxrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-metrics.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-oboparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-owlxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfapi.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlparser.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-rdfxmlrenderer.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/owlapi/owlapi-util.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/xbean.jar:/Programme/Java/eclipse/workspace/DL-Learner-SVN/lib/dllearner.jar org.dllearner.server.DLLearnerWSStart $@ \ No newline at end of file Modified: trunk/bin/ws.bat =================================================================== --- trunk/bin/ws.bat 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/bin/ws.bat 2007-08-28 11:42:35 UTC (rev 84) @@ -1 +1 @@ -java -cp .;lib/dllearner.jar;lib/kaon2.jar;lib/dig1.1-xmlbeans.jar;lib/xbean.jar;lib/jena/antlr-2.7.5.jar;lib/jena/commons-logging.jar;lib/jena/concurrent.jar;lib/jena/icu4j_3_4.jar;lib/jena/iri.jar;lib/jena/jena.jar;lib/jena/xercesImpl.jar org.dllearner.server.DLLearnerWSStart %* +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.server.DLLearnerWSStart %* \ No newline at end of file Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2007-08-28 11:36:13 UTC (rev 83) +++ trunk/build.xml 2007-08-28 11:42:35 UTC (rev 84) @@ -2,7 +2,7 @@ <project basedir="." default="build" name="dl_learner"> <!-- directory settings --> - <property name="lib_dir" value="library" /> + <property name="lib_dir" value="lib" /> <property name="source_dir" value="src/dl-learner" /> <property name="class_dir" value="classes" /> <property name="php_client_dir" value="src/php-client" /> @@ -39,7 +39,7 @@ </path> <!-- build target --> - <target name="build"> + <target name="build" depends="createScripts"> <!-- write current build date into Info.java --> <echo file="${source_dir}/org/dllearner/Info.java" append="false"> @@ -163,13 +163,35 @@ <target name="createScripts" > - <pathconvert refid="classpath" property="pathString"/> - <echo file="bin/test.bat" message="java -cp ${pathString} org.dllearner.QuickStart"/> - <property name="kaon2" value="${lib_dir}/kaon2.jar"/> - + <path id="addjar"> + <path refid="classpath"/> + <pathelement location="${lib_dir}/dllearner.jar"/> + </path> + <path id="removeprefix"><pathelement location="."/> </path> + <pathconvert refid="removeprefix" property="removeprefixwin" targetos="windows"/> + <pathconvert refid="removeprefix" property="removeprefixunix" targetos="unix"/> + <pathconvert refid="addjar" property="pathStringUnix" targetos="unix"> + <map from="${removeprefixunix}" to="."/> + <map from="c:" to=""/> + </pathconvert> + <pathconvert refid="addjar" property="pathStringWin" targetos="windows"> + <map from="${removeprefixwin}" to="."/> + </pathconvert> + + <echo message="${removeprefixunix}"/> + <echo message="${pathStringUnix}"/> + <echo file="bin/quickstart.bat" message="java -cp ${pathStringWin} org.dllearner.QuickStart"/> + <echo file="bin/dllearner.bat" message="java -cp ${pathStringWin} org.dllearner.parser.DLLearner %*"/> + <echo file="bin/ws.bat" message="java -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> + <echo file="bin/quickstart" message="java -cp ${pathStringUnix} org.dllearner.QuickStart"/> + <echo file="bin/dllearner" message="java -cp ${pathStringUnix} org.dllearner.parser.DLLearner $@"/> + <echo file="bin/ws" message="java -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> + </target> + + <target name="javadoc"> <pathconvert refid="classpath" property="jdocclasspath"/> <!--classpath="library/owlapi/antlr-runtime-3.0.jar:library/owlapi/owlapi-rdfxmlparser.jar:library/owlapi/owlapi-owlxmlrenderer.jar:library/owlapi/owlapi-mansyntaxrenderer.jar:library/owlapi/owlapi-metrics.jar:library/owlapi/owlapi-owlxmlparser.jar:library/owlapi/owlapi-change.jar:library/owlapi/owlapi-rdfxmlrenderer.jar:library/owlapi/owlapi-apibinding.jar:library/xbean.jar:library/owlapi/owlapi-oboparser.jar:library/jena/jena.jar:library/owlapi/commons-lang-2.2.jar:library/jena/commons-logging.jar:library/owlapi/owlapi-dig1_1.jar:library/owlapi/owlapi-api.jar:library/owlapi/owlapi-debugging.jar:library/jena/iri.jar:library/kaon2.jar:library/jena/xercesImpl.jar:library/owlapi/owlapi-krssparser.jar:library/jena/antlr-2.7.5.jar:library/owlapi/owlapi-functionalrenderer.jar:library/modules/sparqlModule.jar:library/owlapi/owlapi-mansyntaxparser.jar:library/jena/icu4j_3_4.jar:library/owlapi/owlapi-util.jar:library/dig1.1-xmlbeans.jar:library/jena/concurrent.jar:library/owlapi/owlapi-functionalparser.jar:library/owlapi/owlapi-impl.jar:library/owlapi/owlapi-rdfapi.jar" --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-28 16:48:47
|
Revision: 97 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=97&view=rev Author: jenslehmann Date: 2007-08-28 09:48:40 -0700 (Tue, 28 Aug 2007) Log Message: ----------- Core algorithm change of the refinement operator based algorithm. The algorithm now uses role hierarchies to organise the search space (in case this hierarchy is flat the behaviour is the same as before). As demonstration example the search tree of "daughter.conf" can be used. Modified Paths: -------------- trunk/examples/daughter.conf trunk/src/dl-learner/org/dllearner/Info.java trunk/src/dl-learner/org/dllearner/algorithms/refinement/RhoDown.java trunk/src/dl-learner/org/dllearner/parser/DLLearner.java trunk/src/dl-learner/org/dllearner/parser/dllearner.jj trunk/src/dl-learner/org/dllearner/parser/dllearner.jjt Modified: trunk/examples/daughter.conf =================================================================== --- trunk/examples/daughter.conf 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/examples/daughter.conf 2007-08-28 16:48:40 UTC (rev 97) @@ -20,8 +20,11 @@ showSubsumptionHierarchy = true; /** background knowledge ***/ + +// male and female are disjoint BOTTOM = (male AND female). +// role hierarchy Subrole(hasSon, hasChild). Subrole(hasDaughter, hasChild). @@ -36,13 +39,13 @@ female(michelle). // children -hasChild(stefan,markus). -hasChild(markus,anna). -hasChild(bernd,gabi). -hasChild(gabi,anna). -hasChild(anna,heinz). -hasChild(franz,heinz). -hasChild(franz,michelle). +hasSon(stefan,markus). +hasDaughter(markus,anna). +hasDaughter(bernd,gabi). +hasDaughter(gabi,anna). +hasSon(anna,heinz). +hasSon(franz,heinz). +hasDaughter(franz,michelle). /** examples **/ -father(stefan). Modified: trunk/src/dl-learner/org/dllearner/Info.java =================================================================== --- trunk/src/dl-learner/org/dllearner/Info.java 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/src/dl-learner/org/dllearner/Info.java 2007-08-28 16:48:40 UTC (rev 97) @@ -3,6 +3,6 @@ package org.dllearner; public class Info { - public static final String build = "2007-08-20"; + public static final String build = "2007-08-28"; } \ No newline at end of file Modified: trunk/src/dl-learner/org/dllearner/algorithms/refinement/RhoDown.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/refinement/RhoDown.java 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/src/dl-learner/org/dllearner/algorithms/refinement/RhoDown.java 2007-08-28 16:48:40 UTC (rev 97) @@ -1,3 +1,22 @@ +/** + * Copyright (C) 2007, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package org.dllearner.algorithms.refinement; import java.util.HashMap; @@ -30,6 +49,17 @@ import org.dllearner.utilities.ConceptComparator; import org.dllearner.utilities.ConceptTransformation; +/** + * Implementation of the downward refinement operator in the DL-Learner refinement + * based algorithm. + * + * See <a href="http://jens-lehmann.org/files/2007_alc_learning_algorithm.pdf" + * >http://jens-lehmann.org/files/2007_alc_learning_algorithm.pdf</a> for + * details. + * + * @author Jens Lehmann + * + */ public class RhoDown implements RefinementOperator { private LearningProblem learningProblem; @@ -222,19 +252,34 @@ } } else if (concept instanceof Exists) { + Role role = ((Quantification)concept).getRole(); + + // rule 1: EXISTS r.D => EXISTS r.E tmp = refine(concept.getChild(0), maxLength-2, null); for(Concept c : tmp) { refinements.add(new Exists(((Quantification)concept).getRole(),c)); } + + // rule 2: EXISTS r.D => EXISTS s.D or EXISTS r^-1.D => EXISTS s^-1.D + // currently inverse roles are not supported + AtomicRole ar = (AtomicRole) role; + Set<AtomicRole> moreSpecialRoles = rs.getMoreSpecialRoles(ar); + for(AtomicRole moreSpecialRole : moreSpecialRoles) { + refinements.add(new Exists(moreSpecialRole, concept.getChild(0))); + } } else if (concept instanceof All) { + Role role = ((Quantification)concept).getRole(); + + // rule 1: ALL r.D => ALL r.E tmp = refine(concept.getChild(0), maxLength-2, null); for(Concept c : tmp) { refinements.add(new All(((Quantification)concept).getRole(),c)); } + // rule 2: ALL r.D => ALL r.BOTTOM if D is a most specific atomic concept // falls es keine spezielleren atomaren Konzepte gibt, dann wird // bottom angehangen => nur wenn es ein atomares Konzept (insbesondere != bottom) // ist @@ -243,6 +288,14 @@ refinements.add(new All(((Quantification)concept).getRole(),new Bottom())); } + // rule 3: ALL r.D => ALL s.D or ALL r^-1.D => ALL s^-1.D + // currently inverse roles are not supported + AtomicRole ar = (AtomicRole) role; + Set<AtomicRole> moreSpecialRoles = rs.getMoreSpecialRoles(ar); + for(AtomicRole moreSpecialRole : moreSpecialRoles) { + refinements.add(new All(moreSpecialRole, concept.getChild(0))); + } + } else if(concept instanceof Disjunction || concept instanceof Conjunction) throw new RuntimeException("only multi disjunction/conjunction allowed"); @@ -438,14 +491,13 @@ topComputationTimeNs += System.nanoTime() - topComputationTimeStartNs; } + // computation of the set M private void computeM(int maxLength) { long mComputationTimeStartNs = System.nanoTime(); // System.out.println("compute M from " + (topRefinementsLength+1) + " up to " + maxLength); - // berechnen der Menge M bis zu maxLength - // erstmal leere Mengen hinzufügen (um die Fälle abzudecken, in denen - // es keine Rolle gibt, also M für bestimmte Längen keinen Einträge hat, - // was an anderen Stellen zu NullPointerExceptions führen kann) + // initialise all not yet initialised lengths + // (avoids null pointers in some cases) for(int i=topRefinementsLength+1; i<=maxLength; i++) { m.put(i, new TreeSet<Concept>(conceptComparator)); } @@ -474,9 +526,14 @@ // Konzepte der Länge 3: EXISTS r.TOP if(Config.Refinement.useExistsConstructor) { Set<Concept> m3 = new TreeSet<Concept>(conceptComparator); - for(AtomicRole r : Config.Refinement.allowedRoles) { + // previous operator: uses all roles + // for(AtomicRole r : Config.Refinement.allowedRoles) { + // m3.add(new Exists(r, new Top())); + //} + // new operator: only uses most general roles + for(AtomicRole r : rs.getMostGeneralRoles()) { m3.add(new Exists(r, new Top())); - } + } m.put(3,m3); } } @@ -498,8 +555,13 @@ // if(!m.containsKey(i+2)) // m.put(i+2, new TreeSet<Concept>(conceptComparator)); - for(AtomicRole r : Config.Refinement.allowedRoles) { + // previous operator: uses all roles + // for(AtomicRole r : Config.Refinement.allowedRoles) { // Mehrfacheinf�gen ist bei einer Menge kein Problem + // m.get(i+2).add(new All(r,c)); + // } + + for(AtomicRole r : rs.getMostGeneralRoles()) { m.get(i+2).add(new All(r,c)); } } Modified: trunk/src/dl-learner/org/dllearner/parser/DLLearner.java =================================================================== --- trunk/src/dl-learner/org/dllearner/parser/DLLearner.java 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/src/dl-learner/org/dllearner/parser/DLLearner.java 2007-08-28 16:48:40 UTC (rev 97) @@ -194,7 +194,7 @@ // n.dump(""); // System.out.println("Thank you."); } catch (Exception e) { - System.out.println("Oops. hh"); + System.out.println("\nParse exception occurred. Please follow the advise given below."); System.out.println(e.getMessage()); e.printStackTrace(); System.exit(0); Modified: trunk/src/dl-learner/org/dllearner/parser/dllearner.jj =================================================================== --- trunk/src/dl-learner/org/dllearner/parser/dllearner.jj 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/src/dl-learner/org/dllearner/parser/dllearner.jj 2007-08-28 16:48:40 UTC (rev 97) @@ -212,7 +212,7 @@ // n.dump(""); // System.out.println("Thank you."); } catch (Exception e) { - System.out.println("Oops. hh"); + System.out.println("\nParse exception occurred. Please follow the advise given below."); System.out.println(e.getMessage()); e.printStackTrace(); System.exit(0); Modified: trunk/src/dl-learner/org/dllearner/parser/dllearner.jjt =================================================================== --- trunk/src/dl-learner/org/dllearner/parser/dllearner.jjt 2007-08-28 14:58:25 UTC (rev 96) +++ trunk/src/dl-learner/org/dllearner/parser/dllearner.jjt 2007-08-28 16:48:40 UTC (rev 97) @@ -208,7 +208,7 @@ // n.dump(""); // System.out.println("Thank you."); } catch (Exception e) { - System.out.println("Oops. hh"); + System.out.println("\nParse exception occurred. Please follow the advise given below."); System.out.println(e.getMessage()); e.printStackTrace(); System.exit(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2007-08-29 09:23:22
|
Revision: 104 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=104&view=rev Author: kurzum Date: 2007-08-29 02:23:17 -0700 (Wed, 29 Aug 2007) Log Message: ----------- sparql module.txt updated dbpedia examples Modified Paths: -------------- trunk/doc/sparqlModule.txt trunk/examples/dbpedia/SilentBob.conf trunk/examples/dbpedia/SilentBobWorking1.conf trunk/examples/dbpedia/SilentBobWorking2.conf Modified: trunk/doc/sparqlModule.txt =================================================================== --- trunk/doc/sparqlModule.txt 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/doc/sparqlModule.txt 2007-08-29 09:23:17 UTC (rev 104) @@ -1,5 +1,70 @@ +SPARQL-module +The SPARQL module is integrated into the DL-Learner and cannot be run alone any more. +You can just ignore the second part of this file, although it might describe some things +in more detail. + +Here are some things that have to be included in the .conf file +to get a working example: + +loadJarFile("lib/modules/sparqlModule.jar"); +runPreprocessingModule("org.dllearner.modules.SparqlModule"); + +Options: +======== + +sparqlModule.numberOfRecursion = 2; +(range: 1-3) +Influences how deep the Ontology will be cut out +Default: not sure 2 at the moment +1: means only the selected individuals are loaded +2: adds classes of the individuals and properties +3: adds classes of properties of individuals and superclasses of classes + + +sparqlModule.filterMode = 0; +(range 0-2) +These are presets for SPARQL filters (see below for configurations) +0 only yago classes +1 only categories +2 skos and categories + + +With the next options SPARQL filters can be configured in more detail. +USE EITHER THIS or the filtermode above. + +sparqlModule.sparqlPredicateFilterList={"http://www.w3.org/2004/02/skos/core", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/property/wikipage-", + "http://www.w3.org/2002/07/owl#sameAs", + "http://dbpedia.org/property/reference"}; + +sparqlModule.sparqlObjectFilterList={"http://dbpedia.org/resource/Category:Articles_", + "http://dbpedia.org/resource/Category:Wikipedia_", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/resource/Category", + "http://dbpedia.org/resource/Template", + "http://upload.wikimedia.org/wikipedia/commons"}; + + +With the next option you can state namespaces that shall be typed as classes: +sparqlModule.classList={"http://dbpedia.org/class/yago", + "http://dbpedia.org/resource/Category:", + "http://dbpedia.org/resource/Template:", + "http://www.w3.org/2004/02/skos/core", + "http://dbpedia.org/class/"}; + +Hint: You can maybe export the ontology with the help of kaon2 in rdf format using: +export("file.owl"); +But it is untested. + + + +Attention******************************************* +below is a description of how to run the sparql module as a standalone application +this was disabled though and does NOT work at the moment + Algorithm: ========= Modified: trunk/examples/dbpedia/SilentBob.conf =================================================================== --- trunk/examples/dbpedia/SilentBob.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBob.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -39,10 +39,10 @@ 12 Klassen f�r objects und properties of objects 13 Klassen f�r properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 1; +sparqlModule.filterMode = 1; Modified: trunk/examples/dbpedia/SilentBobWorking1.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -37,10 +37,10 @@ 12 Klassen fr objects und properties of objects 13 Klassen fr properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 nur skos+cat =2 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 0; +sparqlModule.filterMode = 0; // http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/artist // http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/teetotaler Modified: trunk/examples/dbpedia/SilentBobWorking2.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -37,10 +37,10 @@ 12 Klassen f�r objects und properties of objects 13 Klassen f�r properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 nur skos+cat =2 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 2; +sparqlModule.filterMode = 2; // hier sind alternativen zum ausklammern This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-29 16:09:30
|
Revision: 112 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=112&view=rev Author: jenslehmann Date: 2007-08-29 09:08:28 -0700 (Wed, 29 Aug 2007) Log Message: ----------- updated startup files and father example Modified Paths: -------------- trunk/bin/dllearner trunk/bin/dllearner.bat trunk/bin/quickstart trunk/bin/quickstart.bat trunk/bin/ws trunk/bin/ws.bat trunk/examples/father.conf trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java Modified: trunk/bin/dllearner =================================================================== --- trunk/bin/dllearner 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/dllearner 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/modules/sparqlModule.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.parser.DLLearner $@ \ No newline at end of file +java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.parser.DLLearner $@ \ No newline at end of file Modified: trunk/bin/dllearner.bat =================================================================== --- trunk/bin/dllearner.bat 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/dllearner.bat 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.parser.DLLearner %* \ No newline at end of file +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.parser.DLLearner %* \ No newline at end of file Modified: trunk/bin/quickstart =================================================================== --- trunk/bin/quickstart 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/quickstart 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/modules/sparqlModule.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.QuickStart \ No newline at end of file +java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.QuickStart \ No newline at end of file Modified: trunk/bin/quickstart.bat =================================================================== --- trunk/bin/quickstart.bat 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/quickstart.bat 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.QuickStart \ No newline at end of file +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.QuickStart \ No newline at end of file Modified: trunk/bin/ws =================================================================== --- trunk/bin/ws 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/ws 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/modules/sparqlModule.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.server.DLLearnerWSStart $@ \ No newline at end of file +java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/commons-logging.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/xercesImpl.jar:./lib/kaon2.jar:./lib/owlapi/antlr-runtime-3.0.jar:./lib/owlapi/commons-lang-2.2.jar:./lib/owlapi/owlapi-api.jar:./lib/owlapi/owlapi-apibinding.jar:./lib/owlapi/owlapi-change.jar:./lib/owlapi/owlapi-debugging.jar:./lib/owlapi/owlapi-dig1_1.jar:./lib/owlapi/owlapi-functionalparser.jar:./lib/owlapi/owlapi-functionalrenderer.jar:./lib/owlapi/owlapi-impl.jar:./lib/owlapi/owlapi-krssparser.jar:./lib/owlapi/owlapi-mansyntaxparser.jar:./lib/owlapi/owlapi-mansyntaxrenderer.jar:./lib/owlapi/owlapi-metrics.jar:./lib/owlapi/owlapi-oboparser.jar:./lib/owlapi/owlapi-owlxmlparser.jar:./lib/owlapi/owlapi-owlxmlrenderer.jar:./lib/owlapi/owlapi-rdfapi.jar:./lib/owlapi/owlapi-rdfxmlparser.jar:./lib/owlapi/owlapi-rdfxmlrenderer.jar:./lib/owlapi/owlapi-util.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.server.DLLearnerWSStart $@ \ No newline at end of file Modified: trunk/bin/ws.bat =================================================================== --- trunk/bin/ws.bat 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/bin/ws.bat 2007-08-29 16:08:28 UTC (rev 112) @@ -1 +1 @@ -java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\modules\sparqlModule.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.server.DLLearnerWSStart %* \ No newline at end of file +java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\commons-logging.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\xercesImpl.jar;.\lib\kaon2.jar;.\lib\owlapi\antlr-runtime-3.0.jar;.\lib\owlapi\commons-lang-2.2.jar;.\lib\owlapi\owlapi-api.jar;.\lib\owlapi\owlapi-apibinding.jar;.\lib\owlapi\owlapi-change.jar;.\lib\owlapi\owlapi-debugging.jar;.\lib\owlapi\owlapi-dig1_1.jar;.\lib\owlapi\owlapi-functionalparser.jar;.\lib\owlapi\owlapi-functionalrenderer.jar;.\lib\owlapi\owlapi-impl.jar;.\lib\owlapi\owlapi-krssparser.jar;.\lib\owlapi\owlapi-mansyntaxparser.jar;.\lib\owlapi\owlapi-mansyntaxrenderer.jar;.\lib\owlapi\owlapi-metrics.jar;.\lib\owlapi\owlapi-oboparser.jar;.\lib\owlapi\owlapi-owlxmlparser.jar;.\lib\owlapi\owlapi-owlxmlrenderer.jar;.\lib\owlapi\owlapi-rdfapi.jar;.\lib\owlapi\owlapi-rdfxmlparser.jar;.\lib\owlapi\owlapi-rdfxmlrenderer.jar;.\lib\owlapi\owlapi-util.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.server.DLLearnerWSStart %* \ No newline at end of file Modified: trunk/examples/father.conf =================================================================== --- trunk/examples/father.conf 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/examples/father.conf 2007-08-29 16:08:28 UTC (rev 112) @@ -18,7 +18,7 @@ // search tree protocol refinement.writeSearchTree = false; -refinement.searchTreeFile = "searchTree.txt"; +refinement.searchTreeFile = "log/searchTree.txt"; // control output showIndividuals = true; @@ -30,8 +30,6 @@ /** background knowledge ***/ BOTTOM = (male AND female). -father = (male AND EXISTS hasChild.TOP). - // persons male(markus). male(stefan). Modified: trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java 2007-08-29 16:04:24 UTC (rev 111) +++ trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java 2007-08-29 16:08:28 UTC (rev 112) @@ -199,6 +199,7 @@ Config.algorithm = Algorithm.REFINEMENT; Config.Refinement.heuristic = Config.Refinement.Heuristic.FLEXIBLE; Config.Refinement.horizontalExpansionFactor = 0.6; + Config.Refinement.quiet = true; Config.percentPerLengthUnit = 0.05; learningAlgorithm = new ROLearner(learningProblem); } else if(algorithmNr==1) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-08-29 18:09:50
|
Revision: 94 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=94&view=rev Author: jenslehmann Date: 2007-08-28 07:54:28 -0700 (Tue, 28 Aug 2007) Log Message: ----------- created README and INSTALL release files Modified Paths: -------------- trunk/INSTALL trunk/README Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2007-08-28 14:38:05 UTC (rev 93) +++ trunk/INSTALL 2007-08-28 14:54:28 UTC (rev 94) @@ -1 +1,37 @@ - +Requirements +============ +Java 6 and a reasoner is required. + +Installation +============ +No further installation is necessary. Just download and extract DL-Learner. + +Running Instructions +==================== +The instructions assume that you have a usable reasoner running (usually a +DIG capable reasoner running on http://localhost:8081). + +Linux (and other systems) + +Make sure the file "dllearner" is executable and run it on the command line +followed by the name of the file to process, e.g. +"./dllearner examples/father.conf". + +Windows: + +Run "dllearner.bat" followed by the name of the file to process, e.g. +"dllearner.bat examples/father.conf". + +All: + +You can use the "java" command to run the program directly. Have a look at +"dllearner" and "dllearner.bat" to see what the command looks like. + +Web-Service +=========== + +If you want to run DL-Learner as a Web Service, you can run the scripts "ws" or +"ws.bat". They create an own local webserver running DL-Learner. An example +PHP client is also provided by DL-Learner. It can be downloaded at the +sourceforge.net project website: +http://sourceforge.net/project/showfiles.php?group_id=203619 Modified: trunk/README =================================================================== --- trunk/README 2007-08-28 14:38:05 UTC (rev 93) +++ trunk/README 2007-08-28 14:54:28 UTC (rev 94) @@ -1,319 +1,14 @@ -DL-Learner ist a program to learn Description Logic concepts from positive and -negative examples. - -Requirements -============ - -Java 6 is required. No installation is necessary. Just download and extract -DL-Learner. - -Instructions -============ - -Linux (and other systems) - -Make sure the file "dllearner" is executable and run it on the command line -followed by the name of the file to process, e.g. -"./dllearner examples/father.conf". - -Windows: - -Run "dllearner.bat" followed by the name of the file to process, e.g. -"dllearner.bat examples/father.conf". - -All: - -You can use the "java" command to run the program directly. Have a look at -"dllearner" and "dllearner.bat" to see what the command looks like. - -Syntax +README ====== -The background knowledge can either be given as OWL DL file (using the import -function in the configuration files) or by specifying it directly in the -configuration file (which we refer to as the internal knowledge base). +DL-Learner ist a tool to learn Description Logic concepts from positive and +negative examples. Equivalently, it can learn OWL classes given objects as +positive and negative instances. -Some examples of the syntax of the background knowledge in the internal -knowledge base: +Homepage: http://dl-learner.org +Sourceforge.net Project Page: http://sourceforge.net/projects/dl-learner/ +Bugs & Feature Requests: http://sourceforge.net/tracker/?group_id=203619 +Mailing Lists: http://sourceforge.net/mail/?group_id=203619 +Latest Release: http://sourceforge.net/project/showfiles.php?group_id=203619 -person = (male OR female). -mother = (female AND EXISTS hasChild.TOP). -motherManyDaughters = (female AND >= 4 hasChild.female). -(mother AND father) SUBCLASSOF person. - -Also see the example files. - -This is the EBNF description of the input language [slightly outdated]: - -Number = ["1"-"9"] (["0"-"9"])* -Id = ["a"-"z"] (["_","a"-"z","A"-"Z","0"-"9"])* -String: "\"" (~["\"","\\","\n","\r"])* "\"" -Instruction = ConfOption - | FunctionCall - | PosExample - | NegExample - | ABoxConcept - | ABoxRole - | Transitive - | Functional - | Symmetric - | Inverse - | Subrole - | TBoxEquiv - | TBoxSub -ConfOption = Id [ "." Id ] "=" ( Id | Number ) ";" -FunctionCall = Id "(" String ")" ";" -PosExample = "+" Id "(" Id ")" "." -NegExample = "-" Id "(" Id ")" "." -ABoxConcept = Concept "(" Id ")" "." -ABoxRole = Id "(" Id "," Id ")" "." -Transitive = "Transitive" "(" Id ")" "." -Functional = "Functional" "(" Id ")" "." -Symmetric = "Symmetric" "(" Id ")" "." -Inverse = "Inverse" "(" Id "," Id ")" "." -Subrole = "Subrole" "(" Id "," Id ")" "." -TBoxEquiv = Concept "=" Concept "." -TBoxSub = Concept ("SUBCLASSOF" | "SUB" ) Concept "." -Concept = "TOP" - | "BOTTOM" - | Id - | "(" Concept "AND" Concept ")" - | "(" Concept "OR" Concept ")" - | "EXISTS" Id "." Concept - | "ALL" Id "." Concept - | "NOT" Concept - | ">=" Number Id "." Concept - | "<=" Number Id "." Concept - -Configuration Options -===================== - -General -------- - -Option: algorithm -Possible Values: bruteForce, gp, random, refinement, hybridGP -Default: refinement -Effect: Specifies the algorithm to use for solving the learning problem. Note, - that hybridGP is not an algorithm itself, but starts the GP algorithm - with a sensible set of default values for the hybrid algorithm combining - GP with refinement operators. In particular the probability of all - operators except refinement is set to 0. - -Option: reasoner -Possible Values: dig, kaon2, fastRetrieval -Default: dig -Effect: Specifies the reasoner to be used. DIG communicates with a reasoner - using the DIG Interface. KAON2 means to use the KAON2 Java API directly. - FastRetrieval is an internal algorithm, which can only be used for - retrieval (not for subsumption). Currently the DIG reasoner cannot read - OWL files. - -Option: digReasonerURL -Possible Values: a valid URL -Default: http://localhost:8081 -Effect: Specifies the URL to be used to look for a DIG capable reasoner. - -Option: writeDIGProtocol -Possible Values: true, false -Default: false -Effect: Specifies whether to store all DIG communication. - -Option: digProtocolFile -Possible Values: strings -Default: digProtocol.txt -Effect: The file to store all DIG communication if writeDIGProtocol is true. - -Option: useRetrievalForClassification -Possible Values: true, false -Default: false -Effect: To measure which concepts are covered, one can either use one retrieval - or several instance checks (at most one for each example). This option - controls which of both options should be used. - -Option: percentPerLengthUnit -Possible Values: 0-1 -Default: 0.05 -Effect: How much percent (wrt classification accuracy) can a concept be worse to - justify an increase in length of 1. This variable is used for GP and in - refinement when the flexible heuristic is used. For GP, you should use a - value smaller than the default. - -> general options below are ignored < -> by the refinement operator algorithm < - -Option: accuracyPenalty -Possible Values: 1-1000 -Default: 1 -Effect: Sets the penalty for "small misclassifications". - -Option: errorPenalty -Possible Values: 1-1000 -Default: 3 -Effect: Sets the penalty for classification errors. - -Option: maxLength -Possible Values: 1-20 -Default: 7 -Effect: For the brute force learner this specifies the depth limit for the - search. The GP learner currently ignores it. - -Option: scoreMethod -Possible Values: full, positive -Default: positive -Effect: The positive score method ignores if a negative examples cannot be - classified. This is often usefull, because of the limited expressiveness - of SHIQ wrt. negated role assertions. The full method penalizes this. - -Option: showCorrectClassifications -Possible Values: true, false -Default: false -Effect: Controls if correct classifications are printed (does not effect the - algorithm). - -Option: penalizeNeutralExamples -Possible Values: true, false -Default: false -Effect: If true there is a penalty if a neutral (neither positive nor negative) - individual is classified as either positive or negative. This should - usually be set to false. - -Refinement Operator Algorithm Specific --------------------------------------- - -Option: refinement.horizontalExpansionFactor -Possible Values: 0-1 -Default: 0.6 -Effect: Specifies horizontal expansion factor. - -Option: refinement.writeSearchTree -Possible Values: true, false -Default: false -Effect: Specifies whether to write the search tree to a file. - -Option: refinement.searchTreeFile -Possible Values: strings -Default: "searchTree.txt" -Effect: Specifies a file to save the current search tree after each loop of - the refinement algorithm. - -Option: refinement.heuristic -Possible Values: flexible, lexicographic -Default: lexicographic -Effect: The refinement operator together with a heuristic yields a learning - algorithm. The lexicographic heuristic uses a lexicographic order of - covered negative examples and horizontal expansion of a node (i.e. - the covered examples are the first criterion, the horizontal expansion - the second criterion). The flexible heuristic computes a combined node - score of both criteria. Note, that the lexicographic needs a horizontal - expansion factor greater than 0 to ensure correctness of the learning - algorithm. - -Option: refinement.quiet -Possible Values: true, false -Default: false -Effect: If set to true, no messages will be shown during the run of the - algorithm (but there will still be startup and summary messages). - -Option: refinement.applyAllFilter -Possible Values: true, false -Default: true -Effect: Specifies wether all equivalences should be used. - -Option: refinement.applyExistsFilter -Possible Values: true, false -Default: true -Effect: Specifies wether exists equivalences should be used. - -Option: refinement.useTooWeakList -Possible Values: true, false -Default: true -Effect: Specifies wether a too weak list should be used to reduce reasoner - requests. - -Option: refinement.useOverlyGeneralList -Possible Values: true, false -Default: true -Effect: Specifies wether an overly general list should be used to reduce - reasoner requests. - -Option: refinement.useShortConceptConstruction -Possible Values: true, false -Default: true -Effect: Specifies wether the algorithm should try to reduce a concept to a - known more general concept to reduce the number of necessary - subsumption checks for the reasoner. - -Option: refinement.useDIGMultiInstanceChecks -Possible Values: never, twoChecks, oneCheck -Default: twoChecks -Effect: The DIG protocol allows to send several queries to a DIG reasoner at - once. [This is automatically done for subsumption tests.] However, - for instance checks this has the disadvantage that it may not be - necessary to send all instance to the DIG reasoner if one of the - positive examples is not covered (meaning that the concept is - classified as too weak). - If the option is set to never, then each instance check is send - separately. - If the option is set to twoChecks, then first all positive examples will - be send in one query. If all of them are covered, i.e. the concept is - not classified as too weak, then all the negative examples are send in - one query. - If the option is set to oneCheck, then all examples will be send in one - query. - -Genetic Programming Specific ----------------------------- - -Option: gp.algorithmType -Possible Values: steadyState, generational -Default: steadyState -Effect: Uses either a steady state (population partly replaced) or generational - (population completely replaced) algorithm. - -Option: gp.elitism -Possible Values: true, false -Default: true -Effect: If true an the GP algorithm uses elitism, i.e. the best individual is - guarenteed to survive. - -Option: gp.numberOfIndividuals -Possible Values: 1-1000000 -Default: 1000 -Effect: Sets the number of individuals in the population. A higher value - improves classification, but is computationally more expensive. - -Option: gp.numberOfSelectedIndividuals -Possible Values: 1-1000000 -Default: 960 -Effect: Sets the number of individuals, which are selected for replacement in a - steady state GP algorithm. - -Option: gp.crossoverPercent -Possible Values: 0-100 -Default: 95 -Effect: The probability that offspring is produced using crossover (in contrast - to simply being copied over to the next generation). - -Option: gp.mutationPercent -Possible Values: 0-100 -Default: 3 -Effect: The probability that offspring is mutated after reproduction. - -Option: gp.hillClimbingPercent -Possible Values: 0-100 -Default: 0 -Effect: The probability that offspring is produced using the hill climbing - operator. - -Option: gp.refinementPercent -Possible Values: 0-100 -Default: 0 -Effect: The probability that offspring is produced using the genetic refinement - operator. - -Option: gp.postConvergenceGenerations -Possible Values: 10-1000 -Default: 50 -Effect: If the algorithm does not find a better solution for this number of - generations it stops. \ No newline at end of file +DL-Learner is Open Source and licenced unter the GNU General Public License. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-09-15 11:24:17
|
Revision: 140 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=140&view=rev Author: jenslehmann Date: 2007-09-15 04:24:14 -0700 (Sat, 15 Sep 2007) Log Message: ----------- small fixes Modified Paths: -------------- trunk/examples/yinyang_files/straightLearningProblem.xml trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java Modified: trunk/examples/yinyang_files/straightLearningProblem.xml =================================================================== --- trunk/examples/yinyang_files/straightLearningProblem.xml 2007-09-07 04:39:51 UTC (rev 139) +++ trunk/examples/yinyang_files/straightLearningProblem.xml 2007-09-15 11:24:14 UTC (rev 140) @@ -13,7 +13,7 @@ abstractionClass="it.uniba.di.dl.abstraction.KBoundMSCApproximatorRefinement" learn="true" normalize="true" -consistencyCheck="false" +consistencyCheck="true" reasonerURL ="http://localhost:8081" Modified: trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java 2007-09-07 04:39:51 UTC (rev 139) +++ trunk/src/dl-learner/org/dllearner/utilities/PaperStatistics.java 2007-09-15 11:24:14 UTC (rev 140) @@ -126,6 +126,7 @@ int[] algorithmRuns = {1,10,10}; int startAlgorithmNr = 0; + // Config.GP.maxConceptLength = 30; Config.writeDIGProtocol = true; Config.digProtocolFile = new File(statBaseDir, "dig.log"); @@ -233,7 +234,7 @@ Config.percentPerLengthUnit = 0.005; // give GP a chance to find the long solution of the // uncle problem - if(exampleNr==3 || exampleNr == 6) + if(exampleNr==3 || exampleNr==5 || exampleNr == 6) Config.percentPerLengthUnit = 0.002; learningAlgorithm = new GP(learningProblem); } else if(algorithmNr==2) { @@ -250,7 +251,7 @@ Config.GP.crossoverProbability = 0.2; Config.GP.hillClimbingProbability = 0; Config.percentPerLengthUnit = 0.005; - if(exampleNr == 3 || exampleNr==6) + if(exampleNr == 3 || exampleNr==5 || exampleNr==6) Config.percentPerLengthUnit = 0.002; learningAlgorithm = new GP(learningProblem); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-09-25 09:30:17
|
Revision: 151 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=151&view=rev Author: jenslehmann Date: 2007-09-25 02:30:13 -0700 (Tue, 25 Sep 2007) Log Message: ----------- continued building base structure Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/core/Component.java trunk/src/dl-learner/org/dllearner/core/ComponentManager.java trunk/src/dl-learner/org/dllearner/core/ConfigEntry.java trunk/src/dl-learner/org/dllearner/core/ConfigOption.java trunk/src/dl-learner/org/dllearner/core/IntegerConfigOption.java trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java trunk/src/dl-learner/org/dllearner/core/ReasonerComponent.java trunk/src/dl-learner/org/dllearner/core/StringConfigOption.java trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java Added Paths: ----------- trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java trunk/src/dl-learner/org/dllearner/core/ComponentTest.java trunk/src/dl-learner/org/dllearner/core/KnowledgeSource.java trunk/src/dl-learner/org/dllearner/kb/ trunk/src/dl-learner/org/dllearner/kb/OWLFile.java Removed Paths: ------------- trunk/Test.txt Deleted: trunk/Test.txt =================================================================== --- trunk/Test.txt 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/Test.txt 2007-09-25 09:30:13 UTC (rev 151) @@ -1 +0,0 @@ -Test \ No newline at end of file Added: trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java 2007-09-25 09:30:13 UTC (rev 151) @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2007, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.dllearner.core; + +/** + * @author Jens Lehmann + * + */ +public class CommonConfigMappings { + +} Modified: trunk/src/dl-learner/org/dllearner/core/Component.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/Component.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/Component.java 2007-09-25 09:30:13 UTC (rev 151) @@ -39,8 +39,8 @@ /** * Returns all configuration options supported by this component. */ - public static Collection<ConfigOption> createConfigOptions() { - return new LinkedList<ConfigOption>(); + public static Collection<ConfigOption<?>> createConfigOptions() { + return new LinkedList<ConfigOption<?>>(); } /** @@ -48,5 +48,5 @@ * * @param entry A configuration entry. */ - public abstract void applyConfigEntry(ConfigEntry entry); + public abstract <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException; } Modified: trunk/src/dl-learner/org/dllearner/core/ComponentManager.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-25 09:30:13 UTC (rev 151) @@ -72,6 +72,33 @@ return componentStrings; } + public KnowledgeSource knowledgeSource(Class<? extends KnowledgeSource> source) { + try { + Constructor<? extends KnowledgeSource> constructor = source.getConstructor(); + return constructor.newInstance(); + } catch (InstantiationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalAccessException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (SecurityException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (NoSuchMethodException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return null; + } + public LearningProblemNew learningProblem(Class<LearningProblemNew> lp, ReasonerComponent reasoner) { try { Constructor<LearningProblemNew> constructor = lp.getConstructor(ReasonerComponent.class); Added: trunk/src/dl-learner/org/dllearner/core/ComponentTest.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentTest.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/core/ComponentTest.java 2007-09-25 09:30:13 UTC (rev 151) @@ -0,0 +1,50 @@ +/** + * Copyright (C) 2007, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.dllearner.core; + +import org.dllearner.kb.OWLFile; + +/** + * Test for component based design. + * + * @author Jens Lehmann + * + */ +public class ComponentTest { + + /** + * @param args + */ + public static void main(String[] args) { + + // get singleton instance of component manager + ComponentManager cm = ComponentManager.getInstance(); + + // create knowledge source + KnowledgeSource source = cm.knowledgeSource(OWLFile.class); + + // ... to be continued ... + + ReasonerComponent reasoner = new ReasonerComponent(); + ComponentManager.getInstance().learningProblem(LearningProblemNew.class, reasoner); + + } + +} Modified: trunk/src/dl-learner/org/dllearner/core/ConfigEntry.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ConfigEntry.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/ConfigEntry.java 2007-09-25 09:30:13 UTC (rev 151) @@ -25,14 +25,30 @@ * @author Jens Lehmann * */ -public class ConfigEntry { +public class ConfigEntry<T> { - public ConfigEntry(ConfigOption option, Object value) throws Exception { + private ConfigOption<T> option; + private T value; + + public ConfigEntry(ConfigOption<T> option, T value) throws InvalidConfigOptionValueException { if(!option.isValidValue(value)) { throw new InvalidConfigOptionValueException(option, value); } else { - + this.option = option; + this.value = value; } } + public ConfigOption<T> getOption() { + return option; + } + + public String getOptionName() { + return option.getName(); + } + + public T getValue() { + return value; + } + } Modified: trunk/src/dl-learner/org/dllearner/core/ConfigOption.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ConfigOption.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/ConfigOption.java 2007-09-25 09:30:13 UTC (rev 151) @@ -26,7 +26,7 @@ * @author Jens Lehmann * */ -public abstract class ConfigOption { +public abstract class ConfigOption<T> { private String name; @@ -38,6 +38,6 @@ return name; } - public abstract boolean isValidValue(Object value); + public abstract boolean isValidValue(T value); } Modified: trunk/src/dl-learner/org/dllearner/core/IntegerConfigOption.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/IntegerConfigOption.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/IntegerConfigOption.java 2007-09-25 09:30:13 UTC (rev 151) @@ -26,7 +26,7 @@ * @author Jens Lehmann * */ -public class IntegerConfigOption extends ConfigOption { +public class IntegerConfigOption extends ConfigOption<Integer> { private int lowerLimit = Integer.MIN_VALUE; private int upperLimit = Integer.MAX_VALUE; @@ -38,7 +38,7 @@ /* (non-Javadoc) * @see org.dllearner.core.ConfigOption#isValidValue(java.lang.Object) */ - @Override + /* public boolean isValidValue(Object value) { if(!(value instanceof Integer)) return false; @@ -50,7 +50,19 @@ else return false; } + */ + /* (non-Javadoc) + * @see org.dllearner.core.ConfigOption#isValidValue(java.lang.Object) + */ + @Override + public boolean isValidValue(Integer value) { + if(value >= lowerLimit && value <= upperLimit) + return true; + else + return false; + } + /** * @return the The lowest possible value for this configuration option. */ @@ -79,4 +91,6 @@ this.upperLimit = upperLimit; } + + } Modified: trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java 2007-09-25 09:30:13 UTC (rev 151) @@ -27,7 +27,7 @@ private static final long serialVersionUID = 3286110428258072698L; - public InvalidConfigOptionValueException(ConfigOption option, Object value) { + public InvalidConfigOptionValueException(ConfigOption<?> option, Object value) { super("The value " + value + " is not valid for the configuration option " + option + "."); } Added: trunk/src/dl-learner/org/dllearner/core/KnowledgeSource.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/KnowledgeSource.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/core/KnowledgeSource.java 2007-09-25 09:30:13 UTC (rev 151) @@ -0,0 +1,32 @@ +/** + * Copyright (C) 2007, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.dllearner.core; + +import java.net.URI; + +/** + * @author Jens Lehmann + * + */ +public abstract class KnowledgeSource extends Component { + + public abstract String toDIG(URI kbURI); + +} Modified: trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java 2007-09-25 09:30:13 UTC (rev 151) @@ -23,15 +23,8 @@ * @author Jens Lehmann * */ -public class LearningAlgorithmNew extends Component { +public abstract class LearningAlgorithmNew extends Component { - /* (non-Javadoc) - * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) - */ - @Override - public void applyConfigEntry(ConfigEntry entry) { - // TODO Auto-generated method stub - } } Modified: trunk/src/dl-learner/org/dllearner/core/ReasonerComponent.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ReasonerComponent.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/ReasonerComponent.java 2007-09-25 09:30:13 UTC (rev 151) @@ -29,7 +29,7 @@ * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) */ @Override - public void applyConfigEntry(ConfigEntry entry) { + public <T> void applyConfigEntry(ConfigEntry<T> entry) { // TODO Auto-generated method stub } Modified: trunk/src/dl-learner/org/dllearner/core/StringConfigOption.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/StringConfigOption.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/core/StringConfigOption.java 2007-09-25 09:30:13 UTC (rev 151) @@ -29,7 +29,7 @@ * @author Jens Lehmann * */ -public class StringConfigOption extends ConfigOption { +public class StringConfigOption extends ConfigOption<String> { private Set<String> allowedValues; @@ -42,13 +42,8 @@ * @see org.dllearner.core.ConfigOption#isValidValue(java.lang.Object) */ @Override - public boolean isValidValue(Object value) { - if(!(value instanceof String)) - return false; - - String stringValue = (String) value; - - if(allowedValues.size() == 0 || allowedValues.contains(stringValue)) + public boolean isValidValue(String value) { + if(allowedValues.size() == 0 || allowedValues.contains(value)) return true; else return false; Added: trunk/src/dl-learner/org/dllearner/kb/OWLFile.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/OWLFile.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/kb/OWLFile.java 2007-09-25 09:30:13 UTC (rev 151) @@ -0,0 +1,81 @@ +/** + * Copyright (C) 2007, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.dllearner.kb; + +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; +import java.util.Collection; +import java.util.LinkedList; + +import org.dllearner.OntologyFileFormat; +import org.dllearner.core.ConfigEntry; +import org.dllearner.core.ConfigOption; +import org.dllearner.core.InvalidConfigOptionValueException; +import org.dllearner.core.KnowledgeSource; +import org.dllearner.core.StringConfigOption; +import org.dllearner.reasoning.OWLAPIDIGConverter; + +/** + * @author Jens Lehmann + * + */ +public class OWLFile extends KnowledgeSource { + + private URL url; + + public static String getName() { + return "OWL file"; + } + + public static Collection<ConfigOption<?>> createConfigOptions() { + Collection<ConfigOption<?>> options = new LinkedList<ConfigOption<?>>(); + options.add(new StringConfigOption("url")); + return options; + } + + /* + * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) + */ + @Override + public <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException { + if (entry.getOptionName().equals("url")) { + String s = (String) entry.getValue(); + try { + url = new URL(s); + } catch (MalformedURLException e) { + // e.printStackTrace(); + throw new InvalidConfigOptionValueException(entry.getOption(), entry.getValue()); + } + } + } + + /* + * (non-Javadoc) + * + * @see org.dllearner.core.KnowledgeSource#toDIG() + */ + @Override + public String toDIG(URI kbURI) { + // TODO: need some handling for cases where the URL was not set + return OWLAPIDIGConverter.getTellsString(url, OntologyFileFormat.RDF_XML, kbURI); + } + +} Modified: trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java =================================================================== --- trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java 2007-09-23 17:17:56 UTC (rev 150) +++ trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java 2007-09-25 09:30:13 UTC (rev 151) @@ -19,10 +19,7 @@ */ package org.dllearner.learningproblems; -import java.util.Collection; - import org.dllearner.core.ConfigEntry; -import org.dllearner.core.ConfigOption; import org.dllearner.core.LearningProblemNew; /** @@ -35,17 +32,9 @@ * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) */ @Override - public void applyConfigEntry(ConfigEntry entry) { + public <T> void applyConfigEntry(ConfigEntry<T> entry) { // TODO Auto-generated method stub } - - /* (non-Javadoc) - * @see org.dllearner.core.Component#getConfigOptions() - */ - public static Collection<ConfigOption> getConfigOptions() { - // TODO: positive and negative examples - return null; - } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-09-25 18:24:02
|
Revision: 154 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=154&view=rev Author: jenslehmann Date: 2007-09-25 11:23:59 -0700 (Tue, 25 Sep 2007) Log Message: ----------- continued implementing the new base structure Modified Paths: -------------- trunk/lib/components.ini trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java trunk/src/dl-learner/org/dllearner/core/ComponentManager.java trunk/src/dl-learner/org/dllearner/core/ComponentTest.java trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java trunk/src/dl-learner/org/dllearner/core/ReasoningService.java trunk/src/dl-learner/org/dllearner/kb/OWLFile.java trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java Modified: trunk/lib/components.ini =================================================================== --- trunk/lib/components.ini 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/lib/components.ini 2007-09-25 18:23:59 UTC (rev 154) @@ -1,3 +1,8 @@ // list of all components DL-Learner should use // (if you implement your own components add them here) +# knowledge sources +org.dllearner.kb.OWLFile +# reasoners +# learning problems org.dllearner.learningproblems.DefinitionLPTwoValued +# learning algorithms Modified: trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java 2007-09-25 18:23:59 UTC (rev 154) @@ -1,12 +1,21 @@ package org.dllearner.algorithms; +import java.util.Collection; +import java.util.LinkedList; + import org.dllearner.LearningProblem; import org.dllearner.Score; import org.dllearner.algorithms.gp.Program; import org.dllearner.algorithms.gp.GPUtilities; +import org.dllearner.core.ConfigEntry; +import org.dllearner.core.ConfigOption; +import org.dllearner.core.IntegerConfigOption; +import org.dllearner.core.InvalidConfigOptionValueException; +import org.dllearner.core.LearningAlgorithmNew; +import org.dllearner.core.LearningProblemNew; import org.dllearner.core.dl.Concept; -public class RandomGuesser implements LearningAlgorithm { +public class RandomGuesser extends LearningAlgorithmNew implements LearningAlgorithm { private Concept bestDefinition = null; private Score bestScore; @@ -15,6 +24,37 @@ private int numberOfTrees; private int maxDepth; + public RandomGuesser(LearningProblemNew lp) { + + } + + public static Collection<ConfigOption<?>> createConfigOptions() { + Collection<ConfigOption<?>> options = new LinkedList<ConfigOption<?>>(); + options.add(new IntegerConfigOption("numberOfTrees")); + options.add(new IntegerConfigOption("maxDepth")); + return options; + } + + /* (non-Javadoc) + * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) + */ + @Override + public <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException { + String name = entry.getOptionName(); + if (name.equals("numberOfTrees")) + numberOfTrees = (Integer) entry.getValue(); + else if(name.equals("maxDepth")) + maxDepth = (Integer) entry.getValue(); + } + + /* (non-Javadoc) + * @see org.dllearner.core.Component#init() + */ + @Override + public void init() { + // TODO Auto-generated method stub + + } /** * Generiert zufaellig Loesungen. @@ -26,6 +66,7 @@ this.maxDepth = maxDepth; } + @Override public void start() { // this.learningProblem = learningProblem; @@ -50,16 +91,21 @@ // System.out.println(bestScore); } + @Override public Score getSolutionScore() { return bestScore; } + @Override public Concept getBestSolution() { return bestDefinition; } + @Override public void stop() { // TODO Auto-generated method stub } + + } Modified: trunk/src/dl-learner/org/dllearner/core/ComponentManager.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-25 18:23:59 UTC (rev 154) @@ -27,15 +27,16 @@ import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; +import java.util.Comparator; import java.util.HashMap; +import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.TreeSet; -import org.dllearner.kb.OWLFile; - /** * Central manager class for DL-Learner. * @@ -44,23 +45,30 @@ */ public class ComponentManager { + // these variables are valid for the complete lifetime of DL-Learner private static String componentsFile = "lib/components.ini"; - private static ComponentManager cm = new ComponentManager(); + private static Set<Class<? extends Component>> components; - private List<Class<? extends Component>> components; - // list of all configuration options of all components private Map<Class<? extends Component>,List<ConfigOption<?>>> componentOptions; private Map<Class<? extends Component>,Map<String,ConfigOption<?>>> componentOptionsByName; + private Comparator<Class<?>> classComparator = new Comparator<Class<?>>() { + + public int compare(Class<?> c1, Class<?> c2) { + return c1.getName().compareTo(c2.getName()); + } + + }; + @SuppressWarnings({"unchecked"}) private ComponentManager() { // read in components file List<String> componentsString = readComponentsFile(); // component list - components = new LinkedList<Class<? extends Component>>(); + components = new TreeSet<Class<? extends Component>>(classComparator); // create classes from strings for(String componentString : componentsString) { @@ -151,10 +159,10 @@ */ public <T> void applyConfigEntry(Component component, String optionName, T value) { // first we look whether the component is registered - if(components.contains(component)) { + if(components.contains(component.getClass())) { // look for a config option with the specified name - ConfigOption<?> option = (ConfigOption<?>) componentOptionsByName.get(component).get(optionName); + ConfigOption<?> option = (ConfigOption<?>) componentOptionsByName.get(component.getClass()).get(optionName); if(option!=null) { // check whether the given object has the correct type if(!option.checkType(value)) { @@ -204,9 +212,15 @@ return null; } + public <T extends ReasonerComponent> ReasoningService reasoningService(Class<T> reasoner, KnowledgeSource source) { + Set<KnowledgeSource> sources = new HashSet<KnowledgeSource>(); + sources.add(source); + return reasoningService(reasoner, sources); + } + public <T extends ReasonerComponent> ReasoningService reasoningService(Class<T> reasoner, Set<KnowledgeSource> sources) { try { - Constructor<T> constructor = reasoner.getConstructor(ReasonerComponent.class); + Constructor<T> constructor = reasoner.getConstructor(Set.class); T reasonerInstance = constructor.newInstance(sources); return new ReasoningService(reasonerInstance); } catch (IllegalArgumentException e) { @@ -232,9 +246,9 @@ return null; } - public <T extends LearningProblemNew> T learningProblem(Class<T> lp, ReasonerComponent reasoner) { + public <T extends LearningProblemNew> T learningProblem(Class<T> lp, ReasoningService reasoner) { try { - Constructor<T> constructor = lp.getConstructor(ReasonerComponent.class); + Constructor<T> constructor = lp.getConstructor(ReasoningService.class); return constructor.newInstance(reasoner); } catch (SecurityException e) { // TODO Auto-generated catch block @@ -259,4 +273,31 @@ return null; } + public <T extends LearningAlgorithmNew> T learningAlgorithm(Class<T> la, LearningProblemNew lp) { + try { + Constructor<T> constructor = la.getConstructor(LearningProblemNew.class); + return constructor.newInstance(lp); + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (InstantiationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalAccessException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (SecurityException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (NoSuchMethodException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return null; + } + } Modified: trunk/src/dl-learner/org/dllearner/core/ComponentTest.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentTest.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/core/ComponentTest.java 2007-09-25 18:23:59 UTC (rev 154) @@ -19,7 +19,13 @@ */ package org.dllearner.core; +import java.io.File; +import java.net.MalformedURLException; + +import org.dllearner.algorithms.RandomGuesser; import org.dllearner.kb.OWLFile; +import org.dllearner.learningproblems.DefinitionLPTwoValued; +import org.dllearner.reasoning.DIGReasonerNew; /** * Test for component based design. @@ -34,18 +40,35 @@ */ public static void main(String[] args) { + String example = null; + try { + example = new File("examples/father.owl").toURI().toURL().toString(); + } catch (MalformedURLException e) { + e.printStackTrace(); + System.exit(0); + } + // get singleton instance of component manager ComponentManager cm = ComponentManager.getInstance(); // create knowledge source KnowledgeSource source = cm.knowledgeSource(OWLFile.class); - cm.applyConfigEntry(source, "url", "father.owl"); + cm.applyConfigEntry(source, "url", example); + source.init(); - // ... to be continued ... + ReasoningService rs = cm.reasoningService(DIGReasonerNew.class, source); + rs.init(); - // ReasonerComponent reasoner = new ReasonerComponent(); - // ComponentManager.getInstance().learningProblem(LearningProblemNew.class, reasoner); - + LearningProblemNew lp = cm.learningProblem(DefinitionLPTwoValued.class, rs); + // ... add positive and negative examples here ... + lp.init(); + + LearningAlgorithmNew la = cm.learningAlgorithm(RandomGuesser.class, lp); + la.init(); + + // la.start(); + + System.out.println(la.getBestSolution()); } } Modified: trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/core/InvalidConfigOptionValueException.java 2007-09-25 18:23:59 UTC (rev 154) @@ -30,5 +30,9 @@ public InvalidConfigOptionValueException(ConfigOption<?> option, Object value) { super("The value " + value + " is not valid for the configuration option " + option + "."); } - + + public InvalidConfigOptionValueException(ConfigOption<?> option, Object value, String reason) { + super("The value " + value + " is not valid for the configuration option " + option + ". Reason: " + reason + "."); + } + } Modified: trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/core/LearningAlgorithmNew.java 2007-09-25 18:23:59 UTC (rev 154) @@ -19,12 +19,39 @@ */ package org.dllearner.core; +import org.dllearner.Score; +import org.dllearner.core.dl.Concept; + /** * @author Jens Lehmann * */ public abstract class LearningAlgorithmNew extends Component { + /** + * Starts the algorithm. + * + */ + public abstract void start(); + + /** + * Stops the algorithm gracefully. + * + */ + public abstract void stop(); + /** + * Every algorithm must be able to return the score of the + * best solution found. + * @return Best score. + */ + public abstract Score getSolutionScore(); + + /** + * Returns the best solutions obtained so far. + * @return Best solution. + */ + public abstract Concept getBestSolution(); + } Modified: trunk/src/dl-learner/org/dllearner/core/ReasoningService.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ReasoningService.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/core/ReasoningService.java 2007-09-25 18:23:59 UTC (rev 154) @@ -95,11 +95,20 @@ public ReasoningService(Reasoner reasoner) { this.reasoner = reasoner; + resetStatistics(); + } + + public ReasoningService(ReasonerComponent reasoner) { + this.reasoner = reasoner; + } + + public void init() { + // temporary ugly hack to keep old version working + ((ReasonerComponent)reasoner).init(); + // Listenansicht atomicConceptsList = new LinkedList<AtomicConcept>(getAtomicConcepts()); - atomicRolesList = new LinkedList<AtomicRole>(getAtomicRoles()); - - resetStatistics(); + atomicRolesList = new LinkedList<AtomicRole>(getAtomicRoles()); } // zurücksetzen aller Statistiken (wenn z.B. vorher ein Satisfiability Check gemacht wird, @@ -417,7 +426,7 @@ public List<AtomicRole> getAtomicRolesList() { return atomicRolesList; } - + public long getInstanceCheckReasoningTimeNs() { return instanceCheckReasoningTimeNs; } Modified: trunk/src/dl-learner/org/dllearner/kb/OWLFile.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/OWLFile.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/kb/OWLFile.java 2007-09-25 18:23:59 UTC (rev 154) @@ -19,8 +19,10 @@ */ package org.dllearner.kb; +import java.io.File; import java.net.MalformedURLException; import java.net.URI; +import java.net.URISyntaxException; import java.net.URL; import java.util.Collection; import java.util.LinkedList; @@ -60,13 +62,27 @@ String s = (String) entry.getValue(); try { url = new URL(s); + // File f = new File(url.toURI()); + //if(!f.canRead()) + // throw new InvalidConfigOptionValueException(entry.getOption(), entry.getValue()); } catch (MalformedURLException e) { - // e.printStackTrace(); - throw new InvalidConfigOptionValueException(entry.getOption(), entry.getValue()); - } + throw new InvalidConfigOptionValueException(entry.getOption(), entry.getValue(),"malformed URL " + s); + } //catch (URISyntaxException e) { + // TODO Auto-generated catch block + //e.printStackTrace(); + //} } } + /* (non-Javadoc) + * @see org.dllearner.core.Component#init() + */ + @Override + public void init() { + // TODO Auto-generated method stub + + } + /* * (non-Javadoc) * @@ -78,13 +94,6 @@ return OWLAPIDIGConverter.getTellsString(url, OntologyFileFormat.RDF_XML, kbURI); } - /* (non-Javadoc) - * @see org.dllearner.core.Component#init() - */ - @Override - public void init() { - // TODO Auto-generated method stub - - } + } Modified: trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java =================================================================== --- trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java 2007-09-25 14:38:43 UTC (rev 153) +++ trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java 2007-09-25 18:23:59 UTC (rev 154) @@ -43,19 +43,16 @@ import org.dllearner.core.InvalidConfigOptionValueException; import org.dllearner.core.KnowledgeSource; import org.dllearner.core.ReasonerComponent; -import org.dllearner.core.ReasoningMethodUnsupportedException; import org.dllearner.core.StringConfigOption; import org.dllearner.core.dl.AtomicConcept; import org.dllearner.core.dl.AtomicRole; import org.dllearner.core.dl.Bottom; import org.dllearner.core.dl.Concept; import org.dllearner.core.dl.Individual; -import org.dllearner.core.dl.KB; import org.dllearner.core.dl.Top; import org.dllearner.utilities.ConceptComparator; import org.dllearner.utilities.Helper; import org.dllearner.utilities.RoleComparator; -import org.dllearner.utilities.SortedSetTuple; import org.kr.dl.dig.v1_1.Concepts; import org.kr.dl.dig.v1_1.Csynonyms; import org.kr.dl.dig.v1_1.IdType; @@ -728,23 +725,6 @@ // kaon2Reasoner.saveOntology(file, format); } - /* (non-Javadoc) - * @see org.dllearner.core.Reasoner#doubleRetrieval(org.dllearner.core.dl.Concept) - */ - public SortedSetTuple<Individual> doubleRetrieval(Concept concept) - throws ReasoningMethodUnsupportedException { - // TODO Auto-generated method stub - return null; - } - - /* (non-Javadoc) - * @see org.dllearner.core.Reasoner#doubleRetrieval(org.dllearner.core.dl.Concept, org.dllearner.core.dl.Concept) - */ - public SortedSetTuple<Individual> doubleRetrieval(Concept concept, Concept adc) - throws ReasoningMethodUnsupportedException { - // TODO Auto-generated method stub - return null; - } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2007-09-26 12:44:16
|
Revision: 155 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=155&view=rev Author: jenslehmann Date: 2007-09-26 05:44:02 -0700 (Wed, 26 Sep 2007) Log Message: ----------- More base structure added and preparations for first simple tests made. Warning: The next commits (within approx. the next two weeks) are likely to involve transforming different parts of DL-Learner to the new structure, so they can render parts of DL-Learner temporarily unusable. Modified Paths: -------------- trunk/lib/components.ini trunk/src/dl-learner/org/dllearner/Config.java trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java trunk/src/dl-learner/org/dllearner/algorithms/gp/GPUtilities.java trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java trunk/src/dl-learner/org/dllearner/core/ComponentManager.java trunk/src/dl-learner/org/dllearner/core/ComponentTest.java trunk/src/dl-learner/org/dllearner/core/StringSetConfigOption.java trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPThreeValued.java trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPTwoValued.java trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java Modified: trunk/lib/components.ini =================================================================== --- trunk/lib/components.ini 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/lib/components.ini 2007-09-26 12:44:02 UTC (rev 155) @@ -6,3 +6,4 @@ # learning problems org.dllearner.learningproblems.DefinitionLPTwoValued # learning algorithms +org.dllearner.algorithms.RandomGuesser Modified: trunk/src/dl-learner/org/dllearner/Config.java =================================================================== --- trunk/src/dl-learner/org/dllearner/Config.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/Config.java 2007-09-26 12:44:02 UTC (rev 155) @@ -113,7 +113,7 @@ public static int maxLineLength = 100; public static boolean writeDIGProtocol = false; - public static File digProtocolFile = new File("digProtocol.txt"); + public static File digProtocolFile = new File("log/digProtocol.txt"); // public static String preprocessingModule = ""; Modified: trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/algorithms/RandomGuesser.java 2007-09-26 12:44:02 UTC (rev 155) @@ -75,6 +75,7 @@ Program p; for(int i=0; i<numberOfTrees; i++) { + // p = GPUtilities.createGrowRandomProgram(learningProblem, maxDepth); p = GPUtilities.createGrowRandomProgram(learningProblem, maxDepth); if(p.getFitness()>bestFitness) { bestFitness = p.getFitness(); Modified: trunk/src/dl-learner/org/dllearner/algorithms/gp/GPUtilities.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/gp/GPUtilities.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/algorithms/gp/GPUtilities.java 2007-09-26 12:44:02 UTC (rev 155) @@ -123,7 +123,7 @@ public static Program createProgram(LearningProblem learningProblem, Concept mainTree) { return new Program(calculateFitness(learningProblem, mainTree), mainTree); - } + } private static Program createProgram(LearningProblem learningProblem, Concept mainTree, Concept adc) { return new Program(calculateFitness(learningProblem, mainTree,adc), mainTree, adc); Modified: trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/core/CommonConfigMappings.java 2007-09-26 12:44:02 UTC (rev 155) @@ -19,10 +19,23 @@ */ package org.dllearner.core; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; + +import org.dllearner.core.dl.Individual; + /** * @author Jens Lehmann * */ public class CommonConfigMappings { + public static SortedSet<Individual> getIndividualSet(Set<String> individuals) { + SortedSet<Individual> set = new TreeSet<Individual>(); + for(String individual : individuals) + set.add(new Individual(individual)); + return set; + } + } Modified: trunk/src/dl-learner/org/dllearner/core/ComponentManager.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/core/ComponentManager.java 2007-09-26 12:44:02 UTC (rev 155) @@ -137,7 +137,7 @@ String line; while ((line = br.readLine()) != null) { - if(!(line.startsWith("#") || line.startsWith("//") || line.startsWith("%"))) + if(!(line.startsWith("#") || line.startsWith("//") || line.startsWith("%") || line.length()<=1)) componentStrings.add(line); } @@ -166,7 +166,7 @@ if(option!=null) { // check whether the given object has the correct type if(!option.checkType(value)) { - System.out.println("Warning: value " + value + " is not valid for option " + optionName + " in component " + component); + System.out.println("Warning: value " + value + " is not valid for option " + optionName + " in component " + component + ". It does not have the correct type."); return; } Modified: trunk/src/dl-learner/org/dllearner/core/ComponentTest.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/ComponentTest.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/core/ComponentTest.java 2007-09-26 12:44:02 UTC (rev 155) @@ -21,6 +21,8 @@ import java.io.File; import java.net.MalformedURLException; +import java.util.Set; +import java.util.TreeSet; import org.dllearner.algorithms.RandomGuesser; import org.dllearner.kb.OWLFile; @@ -59,14 +61,26 @@ ReasoningService rs = cm.reasoningService(DIGReasonerNew.class, source); rs.init(); + Set<String> positiveExamples = new TreeSet<String>(); + positiveExamples.add("http://example.com/father#stefan"); + positiveExamples.add("http://example.com/father#markus"); + positiveExamples.add("http://example.com/father#martin"); + Set<String> negativeExamples = new TreeSet<String>(); + negativeExamples.add("http://example.com/father#heinz"); + negativeExamples.add("http://example.com/father#anna"); + negativeExamples.add("http://example.com/father#michelle"); + LearningProblemNew lp = cm.learningProblem(DefinitionLPTwoValued.class, rs); - // ... add positive and negative examples here ... + cm.applyConfigEntry(lp, "positiveExamples", positiveExamples); + cm.applyConfigEntry(lp, "negativeExamples", negativeExamples); lp.init(); LearningAlgorithmNew la = cm.learningAlgorithm(RandomGuesser.class, lp); + cm.applyConfigEntry(la, "numberOfTrees", 100); + cm.applyConfigEntry(la, "maxDepth", 5); la.init(); - // la.start(); + la.start(); System.out.println(la.getBestSolution()); } Modified: trunk/src/dl-learner/org/dllearner/core/StringSetConfigOption.java =================================================================== --- trunk/src/dl-learner/org/dllearner/core/StringSetConfigOption.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/core/StringSetConfigOption.java 2007-09-26 12:44:02 UTC (rev 155) @@ -36,8 +36,7 @@ */ @Override public boolean isValidValue(Set<String> value) { - // TODO Auto-generated method stub - return false; + return true; } /* (non-Javadoc) Modified: trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java =================================================================== --- trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLP.java 2007-09-26 12:44:02 UTC (rev 155) @@ -27,14 +27,5 @@ * */ public abstract class DefinitionLP extends LearningProblemNew { - - /* (non-Javadoc) - * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) - */ - @Override - public <T> void applyConfigEntry(ConfigEntry<T> entry) { - // TODO Auto-generated method stub - - } } Modified: trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPThreeValued.java =================================================================== --- trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPThreeValued.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPThreeValued.java 2007-09-26 12:44:02 UTC (rev 155) @@ -19,6 +19,9 @@ */ package org.dllearner.learningproblems; +import org.dllearner.core.ConfigEntry; +import org.dllearner.core.InvalidConfigOptionValueException; + /** * @author Jens Lehmann * @@ -41,4 +44,13 @@ } + /* (non-Javadoc) + * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) + */ + @Override + public <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException { + // TODO Auto-generated method stub + + } + } Modified: trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPTwoValued.java =================================================================== --- trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPTwoValued.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/learningproblems/DefinitionLPTwoValued.java 2007-09-26 12:44:02 UTC (rev 155) @@ -19,13 +19,56 @@ */ package org.dllearner.learningproblems; +import java.util.Collection; +import java.util.LinkedList; +import java.util.Set; +import java.util.SortedSet; + +import org.dllearner.core.CommonConfigMappings; +import org.dllearner.core.ConfigEntry; +import org.dllearner.core.ConfigOption; +import org.dllearner.core.IntegerConfigOption; +import org.dllearner.core.InvalidConfigOptionValueException; +import org.dllearner.core.ReasoningService; +import org.dllearner.core.StringSetConfigOption; +import org.dllearner.core.dl.Individual; + /** * @author Jens Lehmann * */ public class DefinitionLPTwoValued extends DefinitionLP { + private ReasoningService rs; + + private SortedSet<Individual> positiveExamples; + private SortedSet<Individual> negativeExamples; + + public DefinitionLPTwoValued(ReasoningService rs) { + this.rs = rs; + } + + public static Collection<ConfigOption<?>> createConfigOptions() { + Collection<ConfigOption<?>> options = new LinkedList<ConfigOption<?>>(); + options.add(new StringSetConfigOption("positiveExamples")); + options.add(new StringSetConfigOption("negativeExamples")); + return options; + } + /* (non-Javadoc) + * @see org.dllearner.core.Component#applyConfigEntry(org.dllearner.core.ConfigEntry) + */ + @Override + @SuppressWarnings({"unchecked"}) + public <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException { + String name = entry.getOptionName(); + if(name.equals("positiveExamples")) + positiveExamples = CommonConfigMappings.getIndividualSet((Set<String>) entry.getValue()); + else if(name.equals("negativeExamples")) + negativeExamples = CommonConfigMappings.getIndividualSet((Set<String>) entry.getValue()); + } + + /* (non-Javadoc) * @see org.dllearner.core.Component#getName() */ public static String getName() { @@ -41,4 +84,17 @@ } + public SortedSet<Individual> getNegativeExamples() { + return negativeExamples; + } + + public SortedSet<Individual> getPositiveExamples() { + return positiveExamples; + } + + // TODO: remove? reasoning service should probably not be accessed via + // learning problem + public ReasoningService getReasoningService() { + return rs; + } } Modified: trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java =================================================================== --- trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java 2007-09-25 18:23:59 UTC (rev 154) +++ trunk/src/dl-learner/org/dllearner/reasoning/DIGReasonerNew.java 2007-09-26 12:44:02 UTC (rev 155) @@ -113,23 +113,25 @@ "xsi:schemaLocation=\"http://dl.kr.org/dig/2003/02/lang\n" + "http://dl-web.man.ac.uk/dig/2003/02/dig.xsd\" uri=\""+kbURI+"\">"; + // momementan wird davon ausgegangen, dass toDIG(kbURI) den gesamten + // tells-Request liefert StringBuilder sb = new StringBuilder(); - sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"); - sb.append("<tells xmlns=\"http://dl.kr.org/dig/2003/02/lang\" " + - "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + - "xsi:schemaLocation=\"http://dl.kr.org/dig/2003/02/lang\n" + - "http://dl-web.man.ac.uk/dig/2003/02/dig.xsd\" uri=\""+kbURI+"\">"); +// sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"); +// sb.append("<tells xmlns=\"http://dl.kr.org/dig/2003/02/lang\" " + +// "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + +// "xsi:schemaLocation=\"http://dl.kr.org/dig/2003/02/lang\n" + +// "http://dl-web.man.ac.uk/dig/2003/02/dig.xsd\" uri=\""+kbURI+"\">"); for(KnowledgeSource source : sources) { sb.append(source.toDIG(kbURI)); + + ResponseDocument rd = connector.tells(sb.toString()); + if(!rd.getResponse().isSetOk()) { + System.err.println("DIG-Reasoner cannot read knowledgebase."); + System.exit(0); + } } - sb.append("</tells>"); +// sb.append("</tells>"); - ResponseDocument rd = connector.tells(sb.toString()); - if(!rd.getResponse().isSetOk()) { - System.err.println("DIG-Reasoner cannot read knowledgebase."); - System.exit(0); - } - // DIG-Abfragen nach Konzepten, Rollen, Individuals atomicConcepts = getAtomicConceptsDIG(); atomicRoles = getAtomicRolesDIG(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |