jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas " <nto...@gmail.com>
Subject Re: [jira] Created: (JCR-567) more restrictive constraints on a property of a derived node type
Date Mon, 11 Sep 2006 15:03:16 GMT
Hi Roberto,

In a private conversation, you told me this idea is something you "borrowed"
from RDF/OWL. Do you see anything else we should "borrow"?

Do you think we could easily with this evolution map properties to RDF?

Nicolas

On 9/11/06, Roberto Fonti (JIRA) <jira@apache.org> wrote:
>
> more restrictive constraints on a property of a derived node type
> -----------------------------------------------------------------
>
>                  Key: JCR-567
>                  URL: http://issues.apache.org/jira/browse/JCR-567
>              Project: Jackrabbit
>           Issue Type: Improvement
>           Components: core
>     Affects Versions: 1.0.1
>             Reporter: Roberto Fonti
>             Priority: Minor
>
>
> NodeTypes definition should allow to assign more restrictive constraints
> on a property when it is defined for a subtype.
>
> Example:
>
> [rf:Organization] > mix:referenceable, nt:base
> [rf:University] > rf:Organization
>
> [rf:Person] > nt:base
> - rf:worksFor (reference)
>    < 'rf:Organization'
> [rf:Professor] > rf:Person
> - rf:worksFor (reference)
>    < 'rf:University'
>
> In the example, the property "rf:worksFor" has the constraint
> "rf:Organization" when it is defined for a Person,
> while it has the constraint "rf:University" (a subtype of Organization)
> when it is defined for a Professor (a subtype of Person).
>
> Currently you get a NodeTypeConflictException registering such NodeTypes.
>
> In general, this consideration should apply for all property types (not
> only references).
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
a+
Nico
my blog! http://www.deviant-abstraction.net !!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message