Hi again,

Looking at "InstanceTypeExtractor.php", at line 27 below:
---------------
$result = $mysql->query('SELECT template_uri, new_class_id FROM rule_uri');
---------------

 it look like I need to have data in "rule_uri" table. How to add and create
this table?

Thanks


regards,
sarif



On Tue, Jan 5, 2010 at 10:40 AM, sarif ishak <[email protected]> wrote:

> Hi Christopher,
>
> The file is quite big to download so it takes time. While waiting, I'm
> looking into the below files, under 'extractors' directory:
>  -CategoriesClassesExtractor.php
> - CategoriesToClasses.php
> - configCategoriesClasses.php
> - CategoriesClassesExtraction.php
> - ArticlesToClasses.php
>
> One of comment appear is like below:
>
> "The Extractor would only create Output when the temp_cats Table from
> CategoriesClassesExtractor exists "
>
> My question is
>
> Q1: Is this comment still valid? Or not used anymore.
> Q1: If valid, then how to create this 'temp_cats" table? What fields and
> type fields should be there?
>
>
> Then, there are some task which is duplicate, like in
> "CategoriesClassesToArticlesExtractor.php" -
> - it extract the page from  "page_title" table
> - then 'extractClasses'
> - in 'extractClaees" it execute 'get_superclass'
> - etc
>
> And the same function appear inside "classes\ArticlesToClasses.php" file.
> So, which is which, actually? Which one we should run to make the 'class
> category' extraction successful? What config file we should update? And what
> table we populate?
>
>
> regards,
> sarif
>
> On Tue, Jan 5, 2010 at 9:40 AM, sarif ishak <[email protected]> wrote:
>
>> Hi Christopher,
>>
>> I downloaded "category" and "categorylink" data from the site you'd given
>> below.
>>
>> How this data being populated? Is this from the extraction engine? Or the
>> wikimedia engine?
>>
>> regards,
>> sarif
>>
>>
>> On Mon, Dec 21, 2009 at 9:18 PM, Christopher Sahnwaldt <
>> [email protected]> wrote:
>>
>>> I think categorylinks.sql.gz contains the data you need.
>>> See for example http://download.wikimedia.org/enwiki/20091128/
>>>
>>> On Mon, Dec 21, 2009 at 14:08, sarif ishak <[email protected]>
>>> wrote:
>>> > Thanks Christopher,
>>> >
>>> > It is running now. But, now the extracted nt file produced is empty
>>> > (CategoriesClasses_en.nt)
>>> >
>>> > Checking on the code, in "get_superclass" function it read table
>>> > "categorylinks " like below:
>>> >
>>> > ---------------------
>>> > select cl_to from categorylinks where cl_from=....
>>> > ---------------------
>>> >
>>> > Proceed checking on my 'wikidben' database, this table is empty. Is
>>> there
>>> > any script that I can download to get this table filled?
>>> >
>>> > Thanks in advance.
>>> >
>>> >
>>> > regards,
>>> > sarif
>>> >
>>> >
>>> > On Mon, Dec 21, 2009 at 7:50 PM, Christopher Sahnwaldt
>>> > <[email protected]> wrote:
>>> >>
>>> >> Hello Sarif,
>>> >>
>>> >> with the full error log it's clear what's going on - PHP doesn't
>>> >> recognize CategoriesClassesToArticlesExtractor.php as PHP
>>> >> code because the start tag is '<?' instead of '<?php'. The short
>>> >> tag is only recognized if a certain ini parameter is set.
>>> >>
>>> >> I just changed the file to use the long tag. Please run an
>>> >> svn update and try again.
>>> >>
>>> >> Cheers,
>>> >> Christopher
>>> >>
>>> >> On Mon, Dec 21, 2009 at 04:40, sarif ishak <[email protected]>
>>> wrote:
>>> >> > Thanks for your reply.
>>> >> >
>>> >> > Yes, I did change the "CategoriesClassesToArticlesExtractor.php" at
>>> line
>>> >> > below;
>>> >> >
>>> >> > Ori:
>>> >> >
>>> >> > include("databaseconfig.php");
>>> >> >
>>> >> > new:
>>> >> >
>>> >> > include("../databaseconfig.php");
>>> >> >
>>> >> >
>>> >> > This is because it wasn't running at first, so I suspected it cannot
>>> >> > read
>>> >> > the 'databaseconfig.php' file which located at the upper level of
>>> >> > directory.
>>> >> >
>>> >> > Revert back the changes, it still give the same error like below:
>>> >> >
>>> >> >
>>> >> >
>>> -------------------------------------------------------------------------
>>> >> >
>>> >> > E:\Projects\ConstructionKnowledgeDb\implementation\dbpedia4>php
>>> >> > extract_CategoriesClasses.php
>>> >> > <?
>>> >> > /****
>>> >> > *This Extractor assigns Articles to Classes. The Classes are known
>>> from
>>> >> > the
>>> >> > CategoriesClassesExtractor. The Extractor wo
>>> >> > uld only create Output when the temp_cats Table from
>>> >> > CategoriesClassesExtractor exists
>>> >> > *Needs: databaseconfig.inc.php and
>>> classes/configCategoriesClasses.php
>>> >> > and
>>> >> > temp_cats Table from CategoriesClassesExtract
>>> >> > or
>>> >> > ******/
>>> >> >
>>> >> > class CategoriesClassesToArticlesExtractor extends Extractor
>>> >> > {
>>> >> >
>>> >> >         /*
>>> >> >          * Overrides default method
>>> >> >          * */
>>> >> > .......
>>> >> >
>>> >> >     public function finish() {
>>> >> >         mysql_close($this->link);
>>> >> >                 return null;
>>> >> >     }
>>> >> >
>>> >> > }
>>> >> > PHP Fatal error:  Class 'CategoriesClassesToArticlesExtractor' not
>>> found
>>> >> > in
>>> >> > E:\Projects\ConstructionKnowledgeDb\implemen
>>> >> > tation\dbpedia4\extract_CategoriesClasses.php on line 36
>>> >> >
>>> >> > Fatal error: Class 'CategoriesClassesToArticlesExtractor' not found
>>> in
>>> >> > E:\Projects\ConstructionKnowledgeDb\implementatio
>>> >> > n\dbpedia4\extract_CategoriesClasses.php on line 36
>>> >> >
>>> >> > E:\Projects\ConstructionKnowledgeDb\implementation\dbpedia4>
>>> >> >
>>> >> > ------------------------------
>>> >> >
>>> >> >
>>> >> > regards,
>>> >> > sarif
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Mon, Dec 21, 2009 at 8:34 AM, Christopher Sahnwaldt
>>> >> > <[email protected]> wrote:
>>> >> >>
>>> >> >> Hello Sarif,
>>> >> >>
>>> >> >> I'm at a loss... looks like your script should work. Are there any
>>> >> >> other errors or warnings before the one you included in your mail?
>>> >> >>
>>> >> >> Did you make any changes in
>>> CategoriesClassesToArticlesExtractor.php?
>>> >> >> Or are you using the same version as
>>> >> >>
>>> >> >>
>>> >> >>
>>> http://dbpedia.svn.sourceforge.net/viewvc/dbpedia/extraction/extractors/CategoriesClassesToArticlesExtractor.php
>>> >> >> ?
>>> >> >>
>>> >> >> Did you change any other files? Did you move any files after
>>> >> >> you checked out DBpedia from Subversion?
>>> >> >>
>>> >> >> Cheers,
>>> >> >> Christopher
>>> >> >>
>>> >> >> On Sun, Dec 20, 2009 at 00:23, sarif ishak <[email protected]>
>>> >> >> wrote:
>>> >> >> > Hi,
>>> >> >> >
>>> >> >> > This class do exist in my "\extractors" dir, but when I tried to
>>> use
>>> >> >> > it,
>>> >> >> > my
>>> >> >> > test program (extract_CategoriesClasses.php) give the error
>>> below:
>>> >> >> >
>>> >> >> > ---------
>>> >> >> > PHP Fatal error:  Class 'CategoriesClassesToArticlesExtractor'
>>> not
>>> >> >> > found
>>> >> >> > in
>>> >> >> > E:\Projects\ConstructionKnowledgeDb\implemen
>>> >> >> > tation\dbpedia4\extract_CategoriesClasses.php on line 36
>>> >> >> > ----------
>>> >> >> >
>>> >> >> > Any help would be appreciated.
>>> >> >> >
>>> >> >> >
>>> >> >> > regards,
>>> >> >> > sarif
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> ------------------------------------------------------------------------------
>>> >> >> > This SF.Net email is sponsored by the Verizon Developer Community
>>> >> >> > Take advantage of Verizon's best-in-class app development support
>>> >> >> > A streamlined, 14 day to market process makes app distribution
>>> fast
>>> >> >> > and
>>> >> >> > easy
>>> >> >> > Join now and get one step closer to millions of Verizon customers
>>> >> >> > http://p.sf.net/sfu/verizon-dev2dev
>>> >> >> > _______________________________________________
>>> >> >> > Dbpedia-discussion mailing list
>>> >> >> > [email protected]
>>> >> >> > https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>> >> >> >
>>> >> >> >
>>> >> >
>>> >> >
>>> >
>>> >
>>>
>>
>>
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to