Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX cco: <https://www.commoncoreontologies.org/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?document ?document_field
WHERE {
?document obo:BFO_0000178 ?document_field . #has continuant part
?document a cco:ont00001298 . #document
?document_field a cco:ont00001243 . #document field
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider the following style, which make the query more readable:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cco: <https://www.commoncoreontologies.org/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX material_copy_of_a_document: <https://www.commoncoreontologies.org/ont00001298>
PREFIX has_continuant_part: <http://purl.obolibrary.org/obo/BFO_0000178>
PREFIX material_copy_of_a_document_field: <https://www.commoncoreontologies.org/ont00001243>

SELECT ?document (COUNT(?field) AS ?fieldCount)
WHERE {
  ?document rdf:type material_copy_of_a_document: .
  ?document has_continuant_part: ?field .
  ?field rdf:type material_copy_of_a_document_field:.
}
GROUP BY ?document

That said, I don't know why you are using IBEs v ICEs in this pattern.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cco: <https://www.commoncoreontologies.org/>
PREFIX obo: <http://purl.obolibrary.org/obo/>

SELECT ?document (COUNT(?field) AS ?fieldCount)
WHERE {
?document rdf:type cco:ont00001298 .
?document obo:BFO_0000178 ?field .
?field rdf:type cco:ont00001243 .
}
GROUP BY ?document
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX cco: <https://www.commoncoreontologies.org/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?data ?document_field
WHERE {
?document_field a cco:ont00001243 . # document field
?document_field cco:ont00001765 ?data .
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pattern Name
Document Field

## Compentency Questions
1) What document is this document field a part of?

2) How many document fields are in the document?

3) What is the content on these document fields?

## Intent
Showing the document field is a part of a document.

Comes in hand when representing documents with multiple fields, so that we can link more than one ICE to the same IBE.

## Structure
The document has as parts two document fields. One of them carries one ICE, specifically a designative Name.
Copy link
Copy Markdown
Contributor

@alanruttenberg alanruttenberg Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which document is being refered to by "The document" in Structure section, What do you mean when you say "so we can link more than one ICE to the same IBE"

In addition, the title of the PR seems wrong since most of these files are about document fields?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alan, I think Cristian updated an old PR/branch with new content, so for some reason it seems you are still seeing the old commits(?) The "Files changed" section seems to show the new pattern on facilities to me


Despite using names as an example, this pattern can be used with any other ICE.