-
Notifications
You must be signed in to change notification settings - Fork 84
Adding facility location to user guide #775
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
base: develop
Are you sure you want to change the base?
Changes from 4 commits
9801f5a
03cbbdc
d44b492
41b8793
d0efd2e
c269d18
b6c20f2
34c651d
2519c02
a7ad53d
57ba533
c159ba2
9dbe970
c6c3a4f
99c32f3
631096b
5226710
1072728
9756d20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
| } |
| 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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
There was a problem hiding this comment.
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:
That said, I don't know why you are using IBEs v ICEs in this pattern.