{"action":"created","comment":{"url":"https://api.github.com/repos/talis/tripod-php/pulls/comments/30879633","id":30879633,"diff_hunk":"@@ -1,16 +1,27 @@\n <?php\n-require_once TRIPOD_DIR . '/exceptions/TripodException.class.php';\n+\n+namespace Tripod\\Exceptions;\n+\n+require_once TRIPOD_DIR . '/exceptions/Exception.class.php';\n \n /**\n  * @codeCoverageIgnore\n  */\n-class TripodLabellerException extends TripodException {\n+class LabellerException extends Exception {","path":"src/exceptions/LabellerException.class.php","position":12,"original_position":12,"commit_id":"bf6557b353647d05e56acaf1e6489d3097981536","original_commit_id":"054d3701f58983fed23ceffc189fa6a82366ec28","user":{"login":"rsinger","id":72548,"avatar_url":"https://avatars.githubusercontent.com/u/72548?v=3","gravatar_id":"","url":"https://api.github.com/users/rsinger","html_url":"https://github.com/rsinger","followers_url":"https://api.github.com/users/rsinger/followers","following_url":"https://api.github.com/users/rsinger/following{/other_user}","gists_url":"https://api.github.com/users/rsinger/gists{/gist_id}","starred_url":"https://api.github.com/users/rsinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsinger/subscriptions","organizations_url":"https://api.github.com/users/rsinger/orgs","repos_url":"https://api.github.com/users/rsinger/repos","events_url":"https://api.github.com/users/rsinger/events{/privacy}","received_events_url":"https://api.github.com/users/rsinger/received_events","type":"User","site_admin":false},"body":"This is just how PHP namespaces work.  If the class name is 'bare' (i.e. no namespace) it is in the current namespace (in this case ` Tripod\\Exceptions `).  ","created_at":"2015-05-22T09:05:56Z","updated_at":"2015-05-22T09:05:56Z","html_url":"https://github.com/talis/tripod-php/pull/56#discussion_r30879633","pull_request_url":"https://api.github.com/repos/talis/tripod-php/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/comments/30879633"},"html":{"href":"https://github.com/talis/tripod-php/pull/56#discussion_r30879633"},"pull_request":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/talis/tripod-php/pulls/56","id":35731600,"html_url":"https://github.com/talis/tripod-php/pull/56","diff_url":"https://github.com/talis/tripod-php/pull/56.diff","patch_url":"https://github.com/talis/tripod-php/pull/56.patch","issue_url":"https://api.github.com/repos/talis/tripod-php/issues/56","number":56,"state":"open","locked":false,"title":"10%: Introduce namespaces","user":{"login":"rsinger","id":72548,"avatar_url":"https://avatars.githubusercontent.com/u/72548?v=3","gravatar_id":"","url":"https://api.github.com/users/rsinger","html_url":"https://github.com/rsinger","followers_url":"https://api.github.com/users/rsinger/followers","following_url":"https://api.github.com/users/rsinger/following{/other_user}","gists_url":"https://api.github.com/users/rsinger/gists{/gist_id}","starred_url":"https://api.github.com/users/rsinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsinger/subscriptions","organizations_url":"https://api.github.com/users/rsinger/orgs","repos_url":"https://api.github.com/users/rsinger/repos","events_url":"https://api.github.com/users/rsinger/events{/privacy}","received_events_url":"https://api.github.com/users/rsinger/received_events","type":"User","site_admin":false},"body":"This branch introduces namespaces to Tripod.\r\n\r\nFeel free to argue about which classes should go in which namespaces and how they should be named.\r\n\r\nThe way I've divided them up currently (although this is totally open for discussion) is:\r\n\r\n` Tripod `\r\n* ` ITripod `\r\n* ` ITripodStat `\r\n* ` ChangeSet `\r\n* ` ExtendedGraph `\r\n* ` Labeller `\r\n* ` Timer `\r\n* ~~` ITripodSearchProvider ` (perhaps could just be ` iSearchProvider `, thoughts?)~~ ` ISearchProvider ` (formerly ` iTripodSearchProvider `)\r\n\r\n` Tripod\\Mongo ` (btw, it will take *forever* to get used to this inversion)\r\n* ` Tripod ` (formerly ` MongoTripod `)\r\n* ` TripodBase ` (formerly ` MongoTripodBase `)\r\n* ` MongoGraph `\r\n* ` Labeller ` (formerly ` MongoTripodLabeller `)\r\n* ` ImpactedSubject ` (in current master, this is ` ModifiedSubject `, but that concept has been changed in this feature)\r\n* ` IComposite ` (views, tables, and search are now defined as *composites*, this is an interface common among all)\r\n* ` CompositeBase `\r\n* ` Config ` (formerly ` MongoTripodConfig `)\r\n* ` TriplesUtil `\r\n* ` IndexUtils `\r\n* ` NQuadSerializer ` (formerly ` MongoTripodNQuadSerializer `)\r\n* ` MongoSearchProvider ` (this wasn't renamed because this is defining a Mongo-based search provider)\r\n* ` ApplyOperation ` (this is the background job to generate the composites - the jobs could arguably have their own ` Tripod\\Mongo\\Jobs ` namespace. Discuss)\r\n* ` DiscoverImpactedSubjects ` (same as above)\r\n* ` JobBase ` (same)\r\n* ` Views ` (formerly ` MongoTripodViews `.  Do the composites need their own part of the namespace? I feel that might be overkill)\r\n* ` Updates ` (formerly ` MongoTripodUpdates `)\r\n* ` TransactionLog ` (formerly ` MongoTransactionLog ` - this might have been a mistake, as it's probably more like ` MongoSearchProvider `)\r\n* ` Tables ` (formerly ` MongoTripodTables `)\r\n* ` SearchIndexer ` (formerly ` MongoTripodSearchIndexer `)\r\n* ` SearchDocuments ` (formerly ` MongoTripodSearchDocuments `)\r\n\r\n` Tripod\\Exceptions `\r\n* ` Exception ` (formerly ` TripodException `)\r\n* ` CardinalityException ` (formerly ` TripodCardinalityException `)\r\n* ` ConfigException ` (now it's own file, previously was bundled with ` MongoTripodConfig ` as  ` MongoTripodConfigException `)\r\n* ` LabellerException ` (formerly ` TripodLabellerException `)\r\n* ` SearchException ` (formerly ` TripodSearchException `)\r\n* ` ViewException ` (formerly ` TripodViewException ` - is this MongoTripod-specific?)\r\n\r\nWhere class names changed, if they had any associated getter methods, these would have changed, as well.  This was kind of a big undertaking, so there may be some that were missed, so feel free to point any out that you might run across.\r\n\r\nAlso, as I was going through the classes that were imported from legacy libraries (e.g. ` ExtendedGraph `), I cleaned things up a bit, adding docblocks, removing unused (or broken) methods, etc.\r\n","created_at":"2015-05-19T13:46:37Z","updated_at":"2015-05-22T09:05:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b210d0f6402ba39f2b682251fb417a757abb2077","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/talis/tripod-php/pulls/56/commits","review_comments_url":"https://api.github.com/repos/talis/tripod-php/pulls/56/comments","review_comment_url":"https://api.github.com/repos/talis/tripod-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/talis/tripod-php/issues/56/comments","statuses_url":"https://api.github.com/repos/talis/tripod-php/statuses/bf6557b353647d05e56acaf1e6489d3097981536","head":{"label":"talis:introduce-namespaces","ref":"introduce-namespaces","sha":"bf6557b353647d05e56acaf1e6489d3097981536","user":{"login":"talis","id":181416,"avatar_url":"https://avatars.githubusercontent.com/u/181416?v=3","gravatar_id":"","url":"https://api.github.com/users/talis","html_url":"https://github.com/talis","followers_url":"https://api.github.com/users/talis/followers","following_url":"https://api.github.com/users/talis/following{/other_user}","gists_url":"https://api.github.com/users/talis/gists{/gist_id}","starred_url":"https://api.github.com/users/talis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talis/subscriptions","organizations_url":"https://api.github.com/users/talis/orgs","repos_url":"https://api.github.com/users/talis/repos","events_url":"https://api.github.com/users/talis/events{/privacy}","received_events_url":"https://api.github.com/users/talis/received_events","type":"Organization","site_admin":false},"repo":{"id":17243040,"name":"tripod-php","full_name":"talis/tripod-php","owner":{"login":"talis","id":181416,"avatar_url":"https://avatars.githubusercontent.com/u/181416?v=3","gravatar_id":"","url":"https://api.github.com/users/talis","html_url":"https://github.com/talis","followers_url":"https://api.github.com/users/talis/followers","following_url":"https://api.github.com/users/talis/following{/other_user}","gists_url":"https://api.github.com/users/talis/gists{/gist_id}","starred_url":"https://api.github.com/users/talis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talis/subscriptions","organizations_url":"https://api.github.com/users/talis/orgs","repos_url":"https://api.github.com/users/talis/repos","events_url":"https://api.github.com/users/talis/events{/privacy}","received_events_url":"https://api.github.com/users/talis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/talis/tripod-php","description":"Object Graph Mapper for managing RDF data in Mongo","fork":false,"url":"https://api.github.com/repos/talis/tripod-php","forks_url":"https://api.github.com/repos/talis/tripod-php/forks","keys_url":"https://api.github.com/repos/talis/tripod-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talis/tripod-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talis/tripod-php/teams","hooks_url":"https://api.github.com/repos/talis/tripod-php/hooks","issue_events_url":"https://api.github.com/repos/talis/tripod-php/issues/events{/number}","events_url":"https://api.github.com/repos/talis/tripod-php/events","assignees_url":"https://api.github.com/repos/talis/tripod-php/assignees{/user}","branches_url":"https://api.github.com/repos/talis/tripod-php/branches{/branch}","tags_url":"https://api.github.com/repos/talis/tripod-php/tags","blobs_url":"https://api.github.com/repos/talis/tripod-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talis/tripod-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talis/tripod-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/talis/tripod-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talis/tripod-php/statuses/{sha}","languages_url":"https://api.github.com/repos/talis/tripod-php/languages","stargazers_url":"https://api.github.com/repos/talis/tripod-php/stargazers","contributors_url":"https://api.github.com/repos/talis/tripod-php/contributors","subscribers_url":"https://api.github.com/repos/talis/tripod-php/subscribers","subscription_url":"https://api.github.com/repos/talis/tripod-php/subscription","commits_url":"https://api.github.com/repos/talis/tripod-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/talis/tripod-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/talis/tripod-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/talis/tripod-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/talis/tripod-php/contents/{+path}","compare_url":"https://api.github.com/repos/talis/tripod-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talis/tripod-php/merges","archive_url":"https://api.github.com/repos/talis/tripod-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talis/tripod-php/downloads","issues_url":"https://api.github.com/repos/talis/tripod-php/issues{/number}","pulls_url":"https://api.github.com/repos/talis/tripod-php/pulls{/number}","milestones_url":"https://api.github.com/repos/talis/tripod-php/milestones{/number}","notifications_url":"https://api.github.com/repos/talis/tripod-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talis/tripod-php/labels{/name}","releases_url":"https://api.github.com/repos/talis/tripod-php/releases{/id}","created_at":"2014-02-27T09:09:51Z","updated_at":"2015-04-24T13:28:31Z","pushed_at":"2015-05-22T08:57:27Z","git_url":"git://github.com/talis/tripod-php.git","ssh_url":"git@github.com:talis/tripod-php.git","clone_url":"https://github.com/talis/tripod-php.git","svn_url":"https://github.com/talis/tripod-php","homepage":"","size":3138,"stargazers_count":19,"watchers_count":19,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":19,"default_branch":"master"}},"base":{"label":"talis:decouple-invalidation-from-save","ref":"decouple-invalidation-from-save","sha":"180f85f5389505840c221f522d9c6cea56eb2c89","user":{"login":"talis","id":181416,"avatar_url":"https://avatars.githubusercontent.com/u/181416?v=3","gravatar_id":"","url":"https://api.github.com/users/talis","html_url":"https://github.com/talis","followers_url":"https://api.github.com/users/talis/followers","following_url":"https://api.github.com/users/talis/following{/other_user}","gists_url":"https://api.github.com/users/talis/gists{/gist_id}","starred_url":"https://api.github.com/users/talis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talis/subscriptions","organizations_url":"https://api.github.com/users/talis/orgs","repos_url":"https://api.github.com/users/talis/repos","events_url":"https://api.github.com/users/talis/events{/privacy}","received_events_url":"https://api.github.com/users/talis/received_events","type":"Organization","site_admin":false},"repo":{"id":17243040,"name":"tripod-php","full_name":"talis/tripod-php","owner":{"login":"talis","id":181416,"avatar_url":"https://avatars.githubusercontent.com/u/181416?v=3","gravatar_id":"","url":"https://api.github.com/users/talis","html_url":"https://github.com/talis","followers_url":"https://api.github.com/users/talis/followers","following_url":"https://api.github.com/users/talis/following{/other_user}","gists_url":"https://api.github.com/users/talis/gists{/gist_id}","starred_url":"https://api.github.com/users/talis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talis/subscriptions","organizations_url":"https://api.github.com/users/talis/orgs","repos_url":"https://api.github.com/users/talis/repos","events_url":"https://api.github.com/users/talis/events{/privacy}","received_events_url":"https://api.github.com/users/talis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/talis/tripod-php","description":"Object Graph Mapper for managing RDF data in Mongo","fork":false,"url":"https://api.github.com/repos/talis/tripod-php","forks_url":"https://api.github.com/repos/talis/tripod-php/forks","keys_url":"https://api.github.com/repos/talis/tripod-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talis/tripod-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talis/tripod-php/teams","hooks_url":"https://api.github.com/repos/talis/tripod-php/hooks","issue_events_url":"https://api.github.com/repos/talis/tripod-php/issues/events{/number}","events_url":"https://api.github.com/repos/talis/tripod-php/events","assignees_url":"https://api.github.com/repos/talis/tripod-php/assignees{/user}","branches_url":"https://api.github.com/repos/talis/tripod-php/branches{/branch}","tags_url":"https://api.github.com/repos/talis/tripod-php/tags","blobs_url":"https://api.github.com/repos/talis/tripod-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talis/tripod-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talis/tripod-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/talis/tripod-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talis/tripod-php/statuses/{sha}","languages_url":"https://api.github.com/repos/talis/tripod-php/languages","stargazers_url":"https://api.github.com/repos/talis/tripod-php/stargazers","contributors_url":"https://api.github.com/repos/talis/tripod-php/contributors","subscribers_url":"https://api.github.com/repos/talis/tripod-php/subscribers","subscription_url":"https://api.github.com/repos/talis/tripod-php/subscription","commits_url":"https://api.github.com/repos/talis/tripod-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/talis/tripod-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/talis/tripod-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/talis/tripod-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/talis/tripod-php/contents/{+path}","compare_url":"https://api.github.com/repos/talis/tripod-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talis/tripod-php/merges","archive_url":"https://api.github.com/repos/talis/tripod-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talis/tripod-php/downloads","issues_url":"https://api.github.com/repos/talis/tripod-php/issues{/number}","pulls_url":"https://api.github.com/repos/talis/tripod-php/pulls{/number}","milestones_url":"https://api.github.com/repos/talis/tripod-php/milestones{/number}","notifications_url":"https://api.github.com/repos/talis/tripod-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talis/tripod-php/labels{/name}","releases_url":"https://api.github.com/repos/talis/tripod-php/releases{/id}","created_at":"2014-02-27T09:09:51Z","updated_at":"2015-04-24T13:28:31Z","pushed_at":"2015-05-22T08:57:27Z","git_url":"git://github.com/talis/tripod-php.git","ssh_url":"git@github.com:talis/tripod-php.git","clone_url":"https://github.com/talis/tripod-php.git","svn_url":"https://github.com/talis/tripod-php","homepage":"","size":3138,"stargazers_count":19,"watchers_count":19,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/56"},"html":{"href":"https://github.com/talis/tripod-php/pull/56"},"issue":{"href":"https://api.github.com/repos/talis/tripod-php/issues/56"},"comments":{"href":"https://api.github.com/repos/talis/tripod-php/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/talis/tripod-php/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/talis/tripod-php/statuses/bf6557b353647d05e56acaf1e6489d3097981536"}}}}