Re: [Tracker] Enable a new ontology - DwC



Hi,

 nrl:maxCardinality is important for performance. If you know that an instance can have only one value for a property, set the maxCardinality to 1. Otherwise you don't need to set it, by default properties are multivalued.

 tracker:weight boost the results found on that property, but it is relevant only for full text search IIRC. I would let it to the very end, once you have the ontology and insert some data in tracker, try some search and fine-tune the weight if needed.

 Regards,

Ivan
 



On Wed, Feb 12, 2014 at 6:12 AM, Alan Pater <alan pater gmail com> wrote:
Great, thanks for the detailed reply!

Another question. Do I need to use fields like nrl:maxCardinality and
tracker:weight? Those appear in the dc.ontology, but I am not 100%
clear on what they are used or needed for.

Alan

On Wed, Feb 12, 2014 at 3:57 AM, Philip Van Hoof <philip codeminded be> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alan Pater schreef op 12/02/2014 2:35:
>> I am creating an ontology for Darwin Core (DwC) XMP metadata.
>>
>> What steps are needed to enable a new ontology in tracker?
>
> - - git branch dwc-ontology
> - - git checkout dwc-ontology
> - - Write the ontology in our Turtle format. Call it 94-dwc.ontology
>         - Ensure that nao:lastModified is correct in the
>           tracker:Ontology stuff and that it's at the top of
>           the file right underneath the @prefix lines.
>
> - - Write a 94-dwc.description file
> - - Put it in data/ontologies
> - - Adapt Makefile.am (add to config_DATA)
> - - make && make install
> - - Restart tracker-store with -v 3, you should see your
>   ontology being added and created.
> - - Test thoroughly with tracker-sparql. Noticing that making
>   changes afterwards is not always possible; depending on what
>   kind of changes you make you might have to add ontology change
>   coping infrastructure (which is a horror in complexity).
> - - git add 94-dwc.description 94-dwc.ontology Makefile.am
> - - git commit
> - - git format-patch master
>
> Kind regards,
>
> Philip
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.20 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJS+zeUAAoJEEP2NSGEz4aDo3oH/jUm2ICf239sKo0Z71SRnxgg
> BJ2V+Me47wuuhEd2whufc0lhmcNk6EjDWI5YklpmtUD0Y3YQ3ME0n4wkf/X11Wq/
> O6WRyGZajLSET4FtSiRCdqoLUqOkp4BViy6qywTMCDMIYAW8WEMqKkchhBLEV6Gy
> RpPQJFOEo18lbNJSn17cJPZZf+sScvE641wnRz4T2Gh7xY0tkCHda0XYj5NUQstG
> vsG76RzXl+qWEm8UhvHps4hp1PzyUrOqF4yZ5VkAv0hup3aWI8yLlpxaCjydTM6E
> bdzaT7E9r7l3j+KQvykjb+EOIuJrsVeItHJH4VUqRUDALcSt5iyUpSICLsKo5Vo=
> =jlMS
> -----END PGP SIGNATURE-----
_______________________________________________
tracker-list mailing list
tracker-list gnome org
https://mail.gnome.org/mailman/listinfo/tracker-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]