Search Mailing List Archives
[protege-discussion] looking for API sample / code snippet for checking protege constraints
Samson Tu
swt at stanford.edu
Wed Mar 21 13:34:49 PDT 2007
Had you checked the Facet Constraint source code?
http://smi-protege.stanford.edu/svn/facet-constraints-tab/trunk/
Samson
Jens Selbach wrote:
> Hi,
>
> we just got stuck trying to create protege istances vi Java API. Our
> program might create data which
> violates rules set by our ontology schema. Like in the Protege user
> interface protege does not complain
> and invalid data is marked red afterwards.
>
> Does anyone hava a code sample on how to check if a change to e.g. a
> slotvalue is allowed before actually
> doing so?
>
> From looking at the Java Doc it should be possible with the methods
> implemented by FacetConstraint, but
> I have no idea how to use it. Please someone post a code example!
>
> Regards,
> Jens.
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
--
Samson Tu email: swt at stanford.edu
Senior Research Scientist web: www.stanford.edu/~swt/
Stanford Medical Informatics phone: 1-650-725-3391
Stanford University fax: 1-650-725-7944
More information about the protege-discussion
mailing list