You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Gniewosław Rzepka <Gn...@makolab.net> on 2013/01/16 08:53:05 UTC

Keyword Linking Engine: Type Mapping

Hi all,

While doing some dedicated configuration of keyword engine – exactly additional type mapping – I get AJAX Error:

The request failed:

Request Entity Too Large



Is there a chance to believe, that there is limit for mapped types?





Best
Gniewosław Rzepka
Specjalista ds. technologii Semantic Web / Semantic Technology Specialist

e: gniewoslaw.rzepka@makolab.net<ma...@makolab.net>
t: +48 42 683 74 71
[cid:image001.gif@01CDBCD2.6A81D4E0]<http://www.makolab.pl/>
MakoLab S.A.
ul. Demokratyczna 46, 93-430 Łódź
www.makolab.pl<http://www.makolab.pl/>
Spółka zarejestrowana w Krajowym Rejestrze Sądowym przez Sąd Rejonowy dla Łodzi - Śródmieścia w Łodzi XX Wydział Krajowego Rejestru Sądowego pod numerem KRS 0000289179. Wysokość kapitału zakładowego wynosi 707 473 PLN. Kapitał zakładowy został wpłacony w całości. NIP 7250015526, REGON 471343117.
Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej adresatem i może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie, przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak również podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż zamierzony adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o poinformowanie nadawcy i usunięcie jej z komputera.
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please notify the sender and delete the material from your computer.



RE: Keyword Linking Engine: Type Mapping

Posted by Gniewosław Rzepka <Gn...@makolab.net>.
Alrighty, this works fine.

Good to know that there is possibility to configure stanbol preferences via config file.

Thanks Rupert, Fabian

Gniewoslaw Rzepka

-----Original Message-----
From: Rupert Westenthaler [mailto:rupert.westenthaler@gmail.com] 
Sent: Wednesday, January 16, 2013 11:15 AM
To: dev@stanbol.apache.org
Subject: Re: Keyword Linking Engine: Type Mapping

2013/1/16 Gniewosław Rzepka <Gn...@makolab.net>
>
> Hi all,
>
> While doing some dedicated configuration of keyword engine – exactly additional type mapping – I get AJAX Error:
>
> The request failed:
>
> Request Entity Too Large
>
>
>
> Is there a chance to believe, that there is limit for mapped types?


Yes there is a maximum size of the parameters you can sent via the Apache Felix Webconsole. However this is a limitation of the Webconsole meaning that if you are hitting this problem you need to provide the configuration by some other means e.g. by providing a configuration file and copying it to the "stanbol/fileinstall" folder (create the folder if it does not exist)


The filename has to be

    org.apache.stanbol.enhancer.engines.keywordextraction.engine.KeywordLinkingEngine-{instance-name}.config

The contents need to look like

stanbol.enhancer.engine.name="{engine-name}"
org.apache.stanbol.enhancer.engines.keywordextraction.referencedSiteId="{site-id}"
org.apache.stanbol.enhancer.engines.keywordextraction.nameField="rdfs:label"
org.apache.stanbol.enhancer.engines.keywordextraction.typeField="rdf:type"
org.apache.stanbol.enhancer.engines.keywordextraction.keywordTokenizer=B"false"
org.apache.stanbol.enhancer.engines.keywordextraction.dereference=B"true"
org.apache.stanbol.enhancer.engines.keywordextraction.minSearchTokenLength=I"3"
org.apache.stanbol.enhancer.engines.keywordextraction.defaultMatchingLanguage=""
org.apache.stanbol.enhancer.engines.keywordextraction.caseSensitive=B"true"
org.apache.stanbol.enhancer.engines.keywordextraction.redirectField="rdfs:seeAlso"
org.apache.stanbol.enhancer.engines.keywordextraction.processedLanguages=""
org.apache.stanbol.enhancer.engines.keywordextraction.maxSuggestions=I"3"
org.apache.stanbol.enhancer.engines.keywordextraction.redirectMode="IGNORE"
org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=["drugbank:drugs;\
dbp-ont:Drug;\ dailymed:drugs;\ sider:drugs;\ tcm:Medicine\ >\ drugbank:drugs"] service.ranking=I"0"

Note that contents need to be encoded. The best is to find the file of your current configuration in the

   stanbol/config/org/apache/stanbol/enhancer/engines/keywordextraction/engine/KeywordLinkingEngine

directory and than start to adapt it as needed (e.g. add the additional type mappings you can not set via Felix Webconsole.

See also

    http://stanbol.apache.org/docs/trunk/production-mode/

for related information

best
Rupert Westenthaler

>
>
>
>
> Best
>
> Gniewosław Rzepka
>
> Specjalista ds. technologii Semantic Web / Semantic Technology 
> Specialist
>
>
>
> e: gniewoslaw.rzepka@makolab.net
>
> t: +48 42 683 74 71
>
> MakoLab S.A.
>
> ul. Demokratyczna 46, 93-430 Łódź
> www.makolab.pl
>
> Spółka zarejestrowana w Krajowym Rejestrze Sądowym przez Sąd Rejonowy dla Łodzi - Śródmieścia w Łodzi XX Wydział Krajowego Rejestru Sądowego pod numerem KRS 0000289179. Wysokość kapitału zakładowego wynosi 707 473 PLN. Kapitał zakładowy został wpłacony w całości. NIP 7250015526, REGON 471343117.
>
> Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej adresatem i może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie, przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak również podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż zamierzony adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o poinformowanie nadawcy i usunięcie jej z komputera.
>
> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please notify the sender and delete the material from your computer.
>
>




--
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Re: Keyword Linking Engine: Type Mapping

Posted by Rupert Westenthaler <ru...@gmail.com>.
2013/1/16 Gniewosław Rzepka <Gn...@makolab.net>
>
> Hi all,
>
> While doing some dedicated configuration of keyword engine – exactly additional type mapping – I get AJAX Error:
>
> The request failed:
>
> Request Entity Too Large
>
>
>
> Is there a chance to believe, that there is limit for mapped types?


Yes there is a maximum size of the parameters you can sent via the
Apache Felix Webconsole. However this is a limitation of the
Webconsole meaning that if you are hitting this problem you need to
provide the configuration by some other means e.g. by providing a
configuration file and copying it to the "stanbol/fileinstall" folder
(create the folder if it does not exist)


The filename has to be

    org.apache.stanbol.enhancer.engines.keywordextraction.engine.KeywordLinkingEngine-{instance-name}.config

The contents need to look like

stanbol.enhancer.engine.name="{engine-name}"
org.apache.stanbol.enhancer.engines.keywordextraction.referencedSiteId="{site-id}"
org.apache.stanbol.enhancer.engines.keywordextraction.nameField="rdfs:label"
org.apache.stanbol.enhancer.engines.keywordextraction.typeField="rdf:type"
org.apache.stanbol.enhancer.engines.keywordextraction.keywordTokenizer=B"false"
org.apache.stanbol.enhancer.engines.keywordextraction.dereference=B"true"
org.apache.stanbol.enhancer.engines.keywordextraction.minSearchTokenLength=I"3"
org.apache.stanbol.enhancer.engines.keywordextraction.defaultMatchingLanguage=""
org.apache.stanbol.enhancer.engines.keywordextraction.caseSensitive=B"true"
org.apache.stanbol.enhancer.engines.keywordextraction.redirectField="rdfs:seeAlso"
org.apache.stanbol.enhancer.engines.keywordextraction.processedLanguages=""
org.apache.stanbol.enhancer.engines.keywordextraction.maxSuggestions=I"3"
org.apache.stanbol.enhancer.engines.keywordextraction.redirectMode="IGNORE"
org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=["drugbank:drugs;\
dbp-ont:Drug;\ dailymed:drugs;\ sider:drugs;\ tcm:Medicine\ >\
drugbank:drugs"]
service.ranking=I"0"

Note that contents need to be encoded. The best is to find the file of
your current configuration in the

   stanbol/config/org/apache/stanbol/enhancer/engines/keywordextraction/engine/KeywordLinkingEngine

directory and than start to adapt it as needed (e.g. add the
additional type mappings you can not set via Felix Webconsole.

See also

    http://stanbol.apache.org/docs/trunk/production-mode/

for related information

best
Rupert Westenthaler

>
>
>
>
> Best
>
> Gniewosław Rzepka
>
> Specjalista ds. technologii Semantic Web / Semantic Technology Specialist
>
>
>
> e: gniewoslaw.rzepka@makolab.net
>
> t: +48 42 683 74 71
>
> MakoLab S.A.
>
> ul. Demokratyczna 46, 93-430 Łódź
> www.makolab.pl
>
> Spółka zarejestrowana w Krajowym Rejestrze Sądowym przez Sąd Rejonowy dla Łodzi - Śródmieścia w Łodzi XX Wydział Krajowego Rejestru Sądowego pod numerem KRS 0000289179. Wysokość kapitału zakładowego wynosi 707 473 PLN. Kapitał zakładowy został wpłacony w całości. NIP 7250015526, REGON 471343117.
>
> Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej adresatem i może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie, przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak również podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż zamierzony adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o poinformowanie nadawcy i usunięcie jej z komputera.
>
> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please notify the sender and delete the material from your computer.
>
>




--
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

RE: Keyword Linking Engine: Type Mapping

Posted by Gniewosław Rzepka <Gn...@makolab.net>.
Basically, as I mentioned earlier, I was trying to add new Type Mappings to Keyword Linking Engine.



Below I attached POST request:



POST http://stanbol.lisem.makolab.pl/system/console/configMgr/org.apache.stanbol.enhancer.engines.keywordextraction.engine.KeywordLinkingEngine.5b98bf08-f7fd-4e56-8242-3eb9b7828bf5?apply=true&factoryPid=org.apache.stanbol.enhancer.engines.keywordextraction.engine.KeywordLinkingEngine&action=ajaxConfigManager&stanbol.enhancer.engine.name=renaultKeyword&org.apache.stanbol.enhancer.engines.keywordextraction.referencedSiteId=renault&org.apache.stanbol.enhancer.engines.keywordextraction.nameField=rdfs%3Alabel&org.apache.stanbol.enhancer.engines.keywordextraction.caseSensitive=false&org.apache.stanbol.enhancer.engines.keywordextraction.typeField=rdf%3Atype&org.apache.stanbol.enhancer.engines.keywordextraction.redirectField=rdfs%3AseeAlso&org.apache.stanbol.enhancer.engines.keywordextraction.redirectMode=IGNORE&org.apache.stanbol.enhancer.engines.keywordextraction.minSearchTokenLength=3&org.apache.stanbol.enhancer.engines.keywordextraction.minTokenMatchFactor=0.7&org.apache.stanbol.enhancer.engines.keywordextraction.keywordTokenizer=false&org.apache.stanbol.enhancer.engines.keywordextraction.maxSuggestions=3&org.apache.stanbol.enhancer.engines.keywordextraction.processedLanguages=&org.apache.stanbol.enhancer.engines.keywordextraction.defaultMatchingLanguage=&org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=http%3A%2F%2Fdbpedia.org%2Fclass%2Fyago%2FRecyclableMaterials+%3E+http%3A%2F%2Fsem.renault.com%2Fvocab%2FEco&org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=http%3A%2F%2Fschema.org%2FProduct+%3E+http%3A%2F%2Fsem.renault.com%2Fvocab%2FProduct&org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=http%3A%2F%2Fdbpedia.org%2Fontology%2FWork+%3B+http%3A%2F%2Fschema.org%2FCreativeWork+++%3E+http%3A%2F%2Fsem.renault.com%2Fvocab%2FWork&org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=http%3A%2F%2Fdbpedia.org%2Fontology%2FPlace+%3B+http%3A%2F%2Fdbpedia.org%2Fontology%2FPopulatedPlace+%3B+http%3A%2F%2Fschema.org%2FPlace+%3B+http%3A%2F%2Fschema.org%2FCountry++%3E+http%3A%2F%2Fsem.renault.com%2Fvocab%2FPlace&org.apache.stanbol.enhancer.engines.keywordextraction.typeMappings=http%3A%2F%2Fschema.org%2FOffer+%3E+http%3A%2F%2Fsem.renault.com%2Fvocab%2FOffer&org.apache.stanbol.enhancer.engines.keywordextraction.dereference=true&org.apache.stanbol.enhancer.engines.keywordextraction.dereference=false&service.ranking=0&propertylist=stanbol.enhancer.engine.name%2Corg.apache.stanbol.enhancer.engines.keywordextraction.referencedSiteId%2Corg.apache.stanbol.enhancer.engines.keywordextraction.nameField%2Corg.apache.stanbol.enhancer.engines.keywordextraction.caseSensitive%2Corg.apache.stanbol.enhancer.engines.keywordextraction.typeField%2Corg.apache.stanbol.enhancer.engines.keywordextraction.redirectField%2Corg.apache.stanbol.enhancer.engines.keywordextraction.redirectMode%2Corg.apache.stanbol.enhancer.engines.keywordextraction.minSearchTokenLength%2Corg.apache.stanbol.enhancer.engines.keywordextraction.minTokenMatchFactor%2Corg.apache.stanbol.enhancer.engines.keywordextraction.keywordTokenizer%2Corg.apache.stanbol.enhancer.engines.keywordextraction.maxSuggestions%2Corg.apache.stanbol.enhancer.engines.keywordextraction.processedLanguages%2Corg.apache.stanbol.enhancer.engines.keywordextraction.defaultMatchingLanguage%2Corg.apache.stanbol.enhancer.engines.keywordextraction.typeMappings%2Corg.apache.stanbol.enhancer.engines.keywordextraction.dereference%2Cservice.ranking 413 (Request Entity Too Large)



Best

Gniewko





-----Original Message-----
From: Fabian Christ [mailto:christ.fabian@googlemail.com]
Sent: Wednesday, January 16, 2013 10:35 AM
To: dev@stanbol.apache.org
Subject: Re: Keyword Linking Engine: Type Mapping



Hi,



what request are you actually trying to send to Stanbol?



Best,

- Fabian





2013/1/16 Gniewosław Rzepka <Gn...@makolab.net>>



>  Hi all,****

>

> While doing some dedicated configuration of keyword engine – exactly

> additional type mapping – I get AJAX Error:****

>

> The request failed: ****

>

> Request Entity Too Large****

>

> ** **

>

> Is there a chance to believe, that there is limit for mapped

> types?****

>

> ** **

>

> ** **

>

> Best****

>

> Gniewosław Rzepka****

>

> Specjalista ds. technologii Semantic Web / Semantic Technology

> Specialist*

> ***

>

> ** **

>

> e: *gniewoslaw.rzepka@makolab.net*****<mailto:*gniewoslaw.rzepka@makolab.net*****>

>

> t: +48 42 683 74 71****

>

> [image: cid:image001.gif@01CDBCD2.6A81D4E0]

> <http://www.makolab.pl/>****

>

> MakoLab S.A.****

>

> ul. Demokratyczna 46, 93-430 Łódź

> www.makolab.pl****<http://www.makolab.pl****>

>

> Spółka zarejestrowana w Krajowym Rejestrze Sądowym przez Sąd Rejonowy

> dla Łodzi - Śródmieścia w Łodzi XX Wydział Krajowego Rejestru Sądowego

> pod numerem KRS 0000289179. Wysokość kapitału zakładowego wynosi 707 473 PLN.

> Kapitał zakładowy został wpłacony w całości. NIP 7250015526, REGON

> 471343117.****

>

> Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego

> jej adresatem i może zawierać poufne lub uprzywilejowane informacje.

> Zakazane jest przeglądanie, przesyłanie, rozpowszechnianie lub inne

> wykorzystywanie tych informacji, jak również podejmowanie działań na

> ich podstawie, przez osoby lub podmioty inne niż zamierzony adresat.

> Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o

> poinformowanie nadawcy i usunięcie jej z

> komputera.****

>

> The information transmitted is intended only for the person or entity

> to which it is addressed and may contain confidential or privileged material.

> Any review, retransmission, dissemination or other use of, or taking

> of any action in reliance upon, this information by persons or

> entities other than the intended recipient is prohibited. If you

> received this in error, please notify the sender and delete the

> material from your computer.****

>

> ** **

>







--

Fabian

http://twitter.com/fctwitt

Re: Keyword Linking Engine: Type Mapping

Posted by Fabian Christ <ch...@googlemail.com>.
Hi,

what request are you actually trying to send to Stanbol?

Best,
 - Fabian


2013/1/16 Gniewosław Rzepka <Gn...@makolab.net>

>  Hi all,****
>
> While doing some dedicated configuration of keyword engine – exactly
> additional type mapping – I get AJAX Error:****
>
> The request failed: ****
>
> Request Entity Too Large****
>
> ** **
>
> Is there a chance to believe, that there is limit for mapped types?****
>
> ** **
>
> ** **
>
> Best****
>
> Gniewosław Rzepka****
>
> Specjalista ds. technologii Semantic Web / Semantic Technology Specialist*
> ***
>
> ** **
>
> e: *gniewoslaw.rzepka@makolab.net*****
>
> t: +48 42 683 74 71****
>
> [image: cid:image001.gif@01CDBCD2.6A81D4E0] <http://www.makolab.pl/>****
>
> MakoLab S.A.****
>
> ul. Demokratyczna 46, 93-430 Łódź
> www.makolab.pl****
>
> Spółka zarejestrowana w Krajowym Rejestrze Sądowym przez Sąd Rejonowy dla
> Łodzi - Śródmieścia w Łodzi XX Wydział Krajowego Rejestru Sądowego pod
> numerem KRS 0000289179. Wysokość kapitału zakładowego wynosi 707 473 PLN.
> Kapitał zakładowy został wpłacony w całości. NIP 7250015526, REGON
> 471343117.****
>
> Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej
> adresatem i może zawierać poufne lub uprzywilejowane informacje. Zakazane
> jest przeglądanie, przesyłanie, rozpowszechnianie lub inne wykorzystywanie
> tych informacji, jak również podejmowanie działań na ich podstawie, przez
> osoby lub podmioty inne niż zamierzony adresat. Jeśli otrzymali Państwo tę
> wiadomość przez pomyłkę, prosimy o poinformowanie nadawcy i usunięcie jej z
> komputera.****
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential or privileged material.
> Any review, retransmission, dissemination or other use of, or taking of any
> action in reliance upon, this information by persons or entities other than
> the intended recipient is prohibited. If you received this in error, please
> notify the sender and delete the material from your computer.****
>
> ** **
>



-- 
Fabian
http://twitter.com/fctwitt