{"action":"closed","number":278,"pull_request":{"url":"https://api.github.com/repos/incf-nidash/nidm/pulls/278","id":31937622,"html_url":"https://github.com/incf-nidash/nidm/pull/278","diff_url":"https://github.com/incf-nidash/nidm/pull/278.diff","patch_url":"https://github.com/incf-nidash/nidm/pull/278.patch","issue_url":"https://api.github.com/repos/incf-nidash/nidm/issues/278","number":278,"state":"closed","locked":false,"title":"Using base template when generating examples","user":{"login":"cmaumet","id":5374264,"avatar_url":"https://avatars.githubusercontent.com/u/5374264?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaumet","html_url":"https://github.com/cmaumet","followers_url":"https://api.github.com/users/cmaumet/followers","following_url":"https://api.github.com/users/cmaumet/following{/other_user}","gists_url":"https://api.github.com/users/cmaumet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaumet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaumet/subscriptions","organizations_url":"https://api.github.com/users/cmaumet/orgs","repos_url":"https://api.github.com/users/cmaumet/repos","events_url":"https://api.github.com/users/cmaumet/events{/privacy}","received_events_url":"https://api.github.com/users/cmaumet/received_events","type":"User","site_admin":false},"body":"This pull request updates the scripts used to generate the examples (.ttl, .prov) to be able to deal with base templates (i.e. templates that can be re-used by other templates). This is useful to write variation from a given template without copy pasting. \r\n\r\nFor example, the base template `HeightThreshold`:\r\n```\r\n$height_threshold_id a prov:Entity , nidm:HeightThreshold ;\r\n\trdfs:label \"$label\" ;\r\n\tnidm:userSpecifiedThresholdType \"$thresh_type\"^^xsd:string .\r\n```\r\n\r\nCan be extended using  `HeightThreshold_PUnc.txt` to add an uncorrected p-value:\r\n```\r\n    nidm:pValueUncorrected \"$p_unc\"^^xsd:float .\r\n```\r\nor using `HeightThreshold_PFWE.txt` to add an FWER-corrected p-value:\r\n```\r\n\tnidm:pValueFWER \"$p_fwe\"^^xsd:float .\r\n```\r\n\r\nThis will be used in the specifications to describe different possible variations of an entity.","created_at":"2015-03-25T16:09:21Z","updated_at":"2015-03-25T16:41:01Z","closed_at":"2015-03-25T16:41:01Z","merged_at":"2015-03-25T16:41:01Z","merge_commit_sha":"7feadcc245f4d9f85dac34cc227dbe4387b35fef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/incf-nidash/nidm/pulls/278/commits","review_comments_url":"https://api.github.com/repos/incf-nidash/nidm/pulls/278/comments","review_comment_url":"https://api.github.com/repos/incf-nidash/nidm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/incf-nidash/nidm/issues/278/comments","statuses_url":"https://api.github.com/repos/incf-nidash/nidm/statuses/8b1cbbe69467e2ba04f9b99e04c23f59960e8a3f","head":{"label":"cmaumet:base_template","ref":"base_template","sha":"8b1cbbe69467e2ba04f9b99e04c23f59960e8a3f","user":{"login":"cmaumet","id":5374264,"avatar_url":"https://avatars.githubusercontent.com/u/5374264?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaumet","html_url":"https://github.com/cmaumet","followers_url":"https://api.github.com/users/cmaumet/followers","following_url":"https://api.github.com/users/cmaumet/following{/other_user}","gists_url":"https://api.github.com/users/cmaumet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaumet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaumet/subscriptions","organizations_url":"https://api.github.com/users/cmaumet/orgs","repos_url":"https://api.github.com/users/cmaumet/repos","events_url":"https://api.github.com/users/cmaumet/events{/privacy}","received_events_url":"https://api.github.com/users/cmaumet/received_events","type":"User","site_admin":false},"repo":{"id":14391464,"name":"nidm","full_name":"cmaumet/nidm","owner":{"login":"cmaumet","id":5374264,"avatar_url":"https://avatars.githubusercontent.com/u/5374264?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaumet","html_url":"https://github.com/cmaumet","followers_url":"https://api.github.com/users/cmaumet/followers","following_url":"https://api.github.com/users/cmaumet/following{/other_user}","gists_url":"https://api.github.com/users/cmaumet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaumet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaumet/subscriptions","organizations_url":"https://api.github.com/users/cmaumet/orgs","repos_url":"https://api.github.com/users/cmaumet/repos","events_url":"https://api.github.com/users/cmaumet/events{/privacy}","received_events_url":"https://api.github.com/users/cmaumet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmaumet/nidm","description":"Neuroimaging Data Model (NIDM): describing neuroimaging data and provenance","fork":true,"url":"https://api.github.com/repos/cmaumet/nidm","forks_url":"https://api.github.com/repos/cmaumet/nidm/forks","keys_url":"https://api.github.com/repos/cmaumet/nidm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmaumet/nidm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmaumet/nidm/teams","hooks_url":"https://api.github.com/repos/cmaumet/nidm/hooks","issue_events_url":"https://api.github.com/repos/cmaumet/nidm/issues/events{/number}","events_url":"https://api.github.com/repos/cmaumet/nidm/events","assignees_url":"https://api.github.com/repos/cmaumet/nidm/assignees{/user}","branches_url":"https://api.github.com/repos/cmaumet/nidm/branches{/branch}","tags_url":"https://api.github.com/repos/cmaumet/nidm/tags","blobs_url":"https://api.github.com/repos/cmaumet/nidm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmaumet/nidm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmaumet/nidm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmaumet/nidm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmaumet/nidm/statuses/{sha}","languages_url":"https://api.github.com/repos/cmaumet/nidm/languages","stargazers_url":"https://api.github.com/repos/cmaumet/nidm/stargazers","contributors_url":"https://api.github.com/repos/cmaumet/nidm/contributors","subscribers_url":"https://api.github.com/repos/cmaumet/nidm/subscribers","subscription_url":"https://api.github.com/repos/cmaumet/nidm/subscription","commits_url":"https://api.github.com/repos/cmaumet/nidm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmaumet/nidm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmaumet/nidm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmaumet/nidm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmaumet/nidm/contents/{+path}","compare_url":"https://api.github.com/repos/cmaumet/nidm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmaumet/nidm/merges","archive_url":"https://api.github.com/repos/cmaumet/nidm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmaumet/nidm/downloads","issues_url":"https://api.github.com/repos/cmaumet/nidm/issues{/number}","pulls_url":"https://api.github.com/repos/cmaumet/nidm/pulls{/number}","milestones_url":"https://api.github.com/repos/cmaumet/nidm/milestones{/number}","notifications_url":"https://api.github.com/repos/cmaumet/nidm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmaumet/nidm/labels{/name}","releases_url":"https://api.github.com/repos/cmaumet/nidm/releases{/id}","created_at":"2013-11-14T10:12:05Z","updated_at":"2015-03-24T10:25:22Z","pushed_at":"2015-03-25T15:56:37Z","git_url":"git://github.com/cmaumet/nidm.git","ssh_url":"git@github.com:cmaumet/nidm.git","clone_url":"https://github.com/cmaumet/nidm.git","svn_url":"https://github.com/cmaumet/nidm","homepage":"http://nidm.nidash.org","size":81690,"stargazers_count":1,"watchers_count":1,"language":"Web Ontology Language","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"incf-nidash:master","ref":"master","sha":"a9a144705748d0384727f0f1f413c86030cc0d32","user":{"login":"incf-nidash","id":3944799,"avatar_url":"https://avatars.githubusercontent.com/u/3944799?v=3","gravatar_id":"","url":"https://api.github.com/users/incf-nidash","html_url":"https://github.com/incf-nidash","followers_url":"https://api.github.com/users/incf-nidash/followers","following_url":"https://api.github.com/users/incf-nidash/following{/other_user}","gists_url":"https://api.github.com/users/incf-nidash/gists{/gist_id}","starred_url":"https://api.github.com/users/incf-nidash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incf-nidash/subscriptions","organizations_url":"https://api.github.com/users/incf-nidash/orgs","repos_url":"https://api.github.com/users/incf-nidash/repos","events_url":"https://api.github.com/users/incf-nidash/events{/privacy}","received_events_url":"https://api.github.com/users/incf-nidash/received_events","type":"Organization","site_admin":false},"repo":{"id":8960650,"name":"nidm","full_name":"incf-nidash/nidm","owner":{"login":"incf-nidash","id":3944799,"avatar_url":"https://avatars.githubusercontent.com/u/3944799?v=3","gravatar_id":"","url":"https://api.github.com/users/incf-nidash","html_url":"https://github.com/incf-nidash","followers_url":"https://api.github.com/users/incf-nidash/followers","following_url":"https://api.github.com/users/incf-nidash/following{/other_user}","gists_url":"https://api.github.com/users/incf-nidash/gists{/gist_id}","starred_url":"https://api.github.com/users/incf-nidash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incf-nidash/subscriptions","organizations_url":"https://api.github.com/users/incf-nidash/orgs","repos_url":"https://api.github.com/users/incf-nidash/repos","events_url":"https://api.github.com/users/incf-nidash/events{/privacy}","received_events_url":"https://api.github.com/users/incf-nidash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incf-nidash/nidm","description":"Neuroimaging Data Model (NIDM): describing neuroimaging data and provenance","fork":false,"url":"https://api.github.com/repos/incf-nidash/nidm","forks_url":"https://api.github.com/repos/incf-nidash/nidm/forks","keys_url":"https://api.github.com/repos/incf-nidash/nidm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incf-nidash/nidm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incf-nidash/nidm/teams","hooks_url":"https://api.github.com/repos/incf-nidash/nidm/hooks","issue_events_url":"https://api.github.com/repos/incf-nidash/nidm/issues/events{/number}","events_url":"https://api.github.com/repos/incf-nidash/nidm/events","assignees_url":"https://api.github.com/repos/incf-nidash/nidm/assignees{/user}","branches_url":"https://api.github.com/repos/incf-nidash/nidm/branches{/branch}","tags_url":"https://api.github.com/repos/incf-nidash/nidm/tags","blobs_url":"https://api.github.com/repos/incf-nidash/nidm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incf-nidash/nidm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incf-nidash/nidm/git/refs{/sha}","trees_url":"https://api.github.com/repos/incf-nidash/nidm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incf-nidash/nidm/statuses/{sha}","languages_url":"https://api.github.com/repos/incf-nidash/nidm/languages","stargazers_url":"https://api.github.com/repos/incf-nidash/nidm/stargazers","contributors_url":"https://api.github.com/repos/incf-nidash/nidm/contributors","subscribers_url":"https://api.github.com/repos/incf-nidash/nidm/subscribers","subscription_url":"https://api.github.com/repos/incf-nidash/nidm/subscription","commits_url":"https://api.github.com/repos/incf-nidash/nidm/commits{/sha}","git_commits_url":"https://api.github.com/repos/incf-nidash/nidm/git/commits{/sha}","comments_url":"https://api.github.com/repos/incf-nidash/nidm/comments{/number}","issue_comment_url":"https://api.github.com/repos/incf-nidash/nidm/issues/comments{/number}","contents_url":"https://api.github.com/repos/incf-nidash/nidm/contents/{+path}","compare_url":"https://api.github.com/repos/incf-nidash/nidm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incf-nidash/nidm/merges","archive_url":"https://api.github.com/repos/incf-nidash/nidm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incf-nidash/nidm/downloads","issues_url":"https://api.github.com/repos/incf-nidash/nidm/issues{/number}","pulls_url":"https://api.github.com/repos/incf-nidash/nidm/pulls{/number}","milestones_url":"https://api.github.com/repos/incf-nidash/nidm/milestones{/number}","notifications_url":"https://api.github.com/repos/incf-nidash/nidm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incf-nidash/nidm/labels{/name}","releases_url":"https://api.github.com/repos/incf-nidash/nidm/releases{/id}","created_at":"2013-03-22T20:47:55Z","updated_at":"2015-03-25T08:18:03Z","pushed_at":"2015-03-25T16:41:01Z","git_url":"git://github.com/incf-nidash/nidm.git","ssh_url":"git@github.com:incf-nidash/nidm.git","clone_url":"https://github.com/incf-nidash/nidm.git","svn_url":"https://github.com/incf-nidash/nidm","homepage":"nidm.nidash.org","size":84190,"stargazers_count":7,"watchers_count":7,"language":"Web Ontology Language","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":42,"forks":14,"open_issues":42,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/incf-nidash/nidm/pulls/278"},"html":{"href":"https://github.com/incf-nidash/nidm/pull/278"},"issue":{"href":"https://api.github.com/repos/incf-nidash/nidm/issues/278"},"comments":{"href":"https://api.github.com/repos/incf-nidash/nidm/issues/278/comments"},"review_comments":{"href":"https://api.github.com/repos/incf-nidash/nidm/pulls/278/comments"},"review_comment":{"href":"https://api.github.com/repos/incf-nidash/nidm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/incf-nidash/nidm/pulls/278/commits"},"statuses":{"href":"https://api.github.com/repos/incf-nidash/nidm/statuses/8b1cbbe69467e2ba04f9b99e04c23f59960e8a3f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cmaumet","id":5374264,"avatar_url":"https://avatars.githubusercontent.com/u/5374264?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaumet","html_url":"https://github.com/cmaumet","followers_url":"https://api.github.com/users/cmaumet/followers","following_url":"https://api.github.com/users/cmaumet/following{/other_user}","gists_url":"https://api.github.com/users/cmaumet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaumet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaumet/subscriptions","organizations_url":"https://api.github.com/users/cmaumet/orgs","repos_url":"https://api.github.com/users/cmaumet/repos","events_url":"https://api.github.com/users/cmaumet/events{/privacy}","received_events_url":"https://api.github.com/users/cmaumet/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":7,"additions":431,"deletions":387,"changed_files":55}}