Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for anonymous class assertions in templates #630

Merged
merged 2 commits into from
Mar 2, 2020

Conversation

beckyjackson
Copy link
Contributor

Individual Template Strings

If the TYPE is a defined class, owl:Individual, or owl:NamedIndividual, an instance will be created. If the TYPE does not include a defined class, that instance will have no class assertions (unless you use the TI template string to add an anonymous type). You may include a SPLIT= in TYPE if you wish to provide more than one class assertion for an individual.

  • class assertion:
    • TI %: the individual will be asserted to be a type of the class expression in the column
  • individual assertion:
    • I <property>: when creating an individual, replace property with an object property or data property to add assertions (either by label or CURIE). The value of each axiom will be the value of the cell in this column. For object property assertions, this is another individual. For data property assertions, this is a literal value. If using a property label here, do not wrap the label in single quotes.
    • SI %: the individual in the column will be asserted to be the same individual
    • DI %: the individual in the column will be asserted to be a different individual

Example of Individual Template Strings

Label Entity Type Individual Role Property Assertions Different Individuals
LABEL TYPE TI 'has role' some % I part_of DI %
Individual 1 Class 1 Role Class 1 Individual 2
Individual 2 Class 1 Role Class 2 Individual 1

@jamesaoverton jamesaoverton self-requested a review February 28, 2020 18:41
@jamesaoverton jamesaoverton merged commit 94015a6 into master Mar 2, 2020
@jamesaoverton jamesaoverton deleted the ti-template branch March 2, 2020 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants