vivo-project/VIVO

Object property that has multiple domains don't display on the page of individual

Opened this issue · 3 comments

Describe the bug
Object property that has a domain defined by using unionOf don't display on the page of individual as a possible object property to add the data.

To Reproduce
Steps to reproduce the behavior:

  1. Log in as root user.
  2. Create an object property test_property, choose property group and range.
  3. Specify domain by uploading n3:
<http://vivo.mydomain.edu/individual/test_property> a <http://www.w3.org/2002/07/owl#ObjectProperty> .
<http://vivo.mydomain.edu/individual/test_property>  <http://www.w3.org/2000/01/rdf-schema#domain>
    [ a       <http://www.w3.org/2002/07/owl#Class> ;
               <http://www.w3.org/2002/07/owl#unionOf>
             ( <http://vivoweb.org/ontology/core#FacultyMember> <http://xmlns.com/foaf/0.1/Organization> )
    ] .
  1. Go to object property control panel and verify that domain is displayed as (Faculty Member or Organization)
  2. Create individual of Faculty Member class or Organization
  3. Property will not be visible on individual profile page as a possible object property to add the data.

Expected behavior
6. Property should be visible on individual profile page as a possible object property to add the data.

The check that filters out properties was introduced to exclude object properties with different domain that are the base for faux properties present on the page.

Property affected by the issue http://purl.obolibrary.org/obo/ERO_0000037