Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] looking for API sample / code snippet for checking protege constraints

Samson Tu swt at
Wed Mar 21 13:34:49 PDT 2007

Had you checked the Facet Constraint source code?

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
> Instructions for unsubscribing: 

Samson Tu                    email: swt at
Senior Research Scientist    web:
Stanford Medical Informatics phone: 1-650-725-3391
Stanford University          fax: 1-650-725-7944

More information about the protege-discussion mailing list