I wrote some documentation about URI policies and triple/quad file formats:

https://github.com/dbpedia/extraction-framework/wiki/Serialization-format-properties

I hope it helps. If you have any questions, don't hesitate to ask.


JC

On 23 March 2013 00:23, Jona Christopher Sahnwaldt <[email protected]> wrote:

> It's a bit complicated. I'll extend the comments in the configuration
> files.
>  On Mar 22, 2013 3:19 PM, "Riko Adi Prasetya" <[email protected]>
> wrote:
>
>> Hi Jona and Dimitris,
>>
>> Thank you,
>> It's work.
>> I'm sorry I don't understand about uri-policy.uri and uri-policy.iri.
>> Can you tell me?
>>
>> Regards,
>> Riko
>>
>>   ------------------------------
>> *Dari:* Dimitris Kontokostas <[email protected]>
>> *Kepada:* Riko Adi Prasetya <[email protected]>
>> *Cc:* "[email protected]" <
>> [email protected]>
>> *Dikirim:* Jumat, 22 Maret 2013 19:23
>> *Judul:* Re: [Dbpedia-discussion] localized extraction of language id
>>
>> You should use the default configuration for
>> uri-policy.uri
>> uri-policy.iri
>>
>> the generic:XX; creates http://dbpedia.org for language XX
>>
>> Dimitris
>>
>>
>>
>> On Fri, Mar 22, 2013 at 11:58 AM, Riko Adi Prasetya <
>> [email protected]> wrote:
>>
>> Hi all,
>>
>> I tried to extract wikipedia dump for Indonesian.
>> The example of the result is like this
>>
>> <http://dbpedia.org/resource/Jawa> <
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
>> http://www.opengis.net/gml/_Feature> .
>>
>> My question is about the namespace. Where do I must configure so i can
>> get the namespace id.dbpedia.org?
>>
>> I hope I can get the result like this
>> <http://id.dbpedia.org/resource/Jawa> <
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
>> http://www.opengis.net/gml/_Feature> .
>>
>> This is my configuration file.
>>
>> # download and extraction target dir
>> base-dir=/home/riko/TA/dbpedia
>>
>> # Source file. If source file name ends with .gz or .bz2, it is unzipped
>> on the fly.
>> # Must exist in the directory xxwiki/yyyymmdd and have the prefix
>> xxwiki-yyyymmdd-
>> # where xx is the wiki code and yyyymmdd is the dump date.
>>
>> # default:
>> source=pages-articles.xml
>>
>> # alternatives:
>> # source=pages-articles.xml.bz2
>> # source=pages-articles.xml.gz
>>
>> # use only directories that contain a 'download-complete' file? Default
>> is false.
>> require-download-complete=true
>>
>> # List of languages or article count ranges, e.g. 'en,de,fr' or
>> '10000-20000' or '10000-', or '@mappings'
>> languages=id
>>
>> # unqualified extractor class names are prefixed by
>> org.dbpedia.extraction.mappings.
>> extractors=GeoExtractor
>>
>> # extractors.id=MappingExtractor
>>
>> # if ontology and mapping files are not given or do not exist, download
>> info from mappings.dbpedia.org
>> ontology=../ontology.xml
>> mappings=../mappings
>>
>> # URI policies. Allowed flags: uri, generic, xml-safe. Each flag may have
>> one of the suffixes
>> # -subjects, -predicates, -objects, -datatype, -context to match only
>> URIs in a certain position.
>> # Without a suffix, a flag matches all URI positions.
>>
>> uri-policy.uri=uri:id; generic:id; xml-safe-predicates:*
>> uri-policy.iri=generic:id; xml-safe-predicates:*
>>
>> # File formats. Allowed flags: n-triples, n-quads, turtle-triples,
>> turtle-quads, trix-triples, trix-quads
>> # May be followed by a semicolon and a URI policy name. If format name
>> ends with .gz or .bz2, files
>> # are zipped on the fly.
>>
>> # NT is unreadable anyway - might as well use URIs for en
>> #format.nt.gz=n-triples;uri-policy.uri
>> #format.nq.gz=n-quads;uri-policy.uri
>>
>> # Turtle is much more readable - use nice IRIs for all languages
>> #format.ttl.gz=turtle-triples;uri-policy.iri
>> format.tql.gz=turtle-quads;uri-policy.iri
>>
>> Thank you.
>>
>> Regards,
>> Riko
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_mar
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>>
>>
>>
>> --
>> Kontokostas Dimitris
>>
>>
>>
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to