{"id":25843057,"url":"https://github.com/incatools/relation-graph","last_synced_at":"2025-03-01T06:37:51.057Z","repository":{"id":39908371,"uuid":"287855124","full_name":"INCATools/relation-graph","owner":"INCATools","description":"Materialize OWL existential relations","archived":false,"fork":false,"pushed_at":"2024-09-26T19:06:27.000Z","size":609,"stargazers_count":15,"open_issues_count":22,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-08T10:47:04.591Z","etag":null,"topics":["obofoundry","ontology","owl","rdf"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/INCATools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-16T01:52:18.000Z","updated_at":"2024-11-01T10:08:10.000Z","dependencies_parsed_at":"2023-02-14T08:02:03.061Z","dependency_job_id":"f6b8c24d-1191-41c4-9d3f-1e79d9cc1971","html_url":"https://github.com/INCATools/relation-graph","commit_stats":null,"previous_names":["balhoff/relation-graph"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Frelation-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Frelation-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Frelation-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Frelation-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/INCATools","download_url":"https://codeload.github.com/INCATools/relation-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329396,"owners_count":19944982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["obofoundry","ontology","owl","rdf"],"created_at":"2025-03-01T06:37:50.446Z","updated_at":"2025-03-01T06:37:51.051Z","avatar_url":"https://github.com/INCATools.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# relation-graph\n\nMaterialize OWL existential relations\n\n## Run\n\n```bash\nrelation-graph --ontology-file uberon.owl --output-file relations.ttl --mode rdf --property 'http://purl.obolibrary.org/obo/BFO_0000050' --property 'http://purl.obolibrary.org/obo/BFO_0000051' --properties-file more_properties.txt\n```\n\nYou can leave off the `property` and `properties-file` arguments; in that case all OWL object properties are used. The default mode is `rdf`; \nalternatively, the `owl` mode will output RDF, but as a valid OWL structure. The `properties-file` should look like this:\n\n```\nhttp://purl.obolibrary.org/obo/BFO_0000050\nhttp://purl.obolibrary.org/obo/BFO_0000051\n```\n**Note:** Before running, you may need to increase the amount of memory available for Java. On UNIX style systems, this is done by setting the `JAVA_OPTS` environment variable. For example, to set the amount of memory to `16G`, you would use this command: `export JAVA_OPTS=-Xmx16G`.\n\n### Full options\n\n```\nUsage: relation-graph [options]\n  --usage  \u003cbool\u003e\n        Print usage and exit\n  --help | -h  \u003cbool\u003e\n        Print help message and exit\n  --ontology-file  \u003cfilename\u003e\n        Input OWL ontology\n  --output-file  \u003cfilename\u003e\n        File to stream output triples to.\n  --mode  \u003cRDF|OWL|TSV\u003e\n        Configure style of triples to be output. RDF mode is the default; each existential relation is collapsed to a single direct triple. TSV mode outputs the same triples as RDF mode, but as TSV, compacting IRIs using an optional prefixes file.\n  --property  \u003cIRI\u003e\n        Property to restrict output relations to. Provide option multiple times for multiple properties. If no properties are provided (via CLI or file), then all properties found in the ontology will be used.\n  --properties-file  \u003cfilename\u003e\n        File containing line-separated property IRIs to restrict output relations to. If no properties are provided (via CLI or file), then all properties found in the ontology will be used.\n  --output-subclasses  \u003cbool\u003e\n        Include entailed rdfs:subClassOf or owl:equivalentClass relations in output (default false)\n  --reflexive-subclasses  \u003cbool\u003e\n        When outputting rdfs:subClassOf, include relations to self for every class (default true)\n  --equivalence-as-subclass  \u003cbool\u003e\n        When outputting equivalent classes, output reciprocal rdfs:subClassOf triples instead of owl:equivalentClass triples (default true)\n  --output-classes  \u003cbool\u003e\n        Output any triples where classes are subjects (default true)\n  --output-individuals  \u003cbool\u003e\n        Output triples where individuals are subjects, with classes as objects (default false)\n  --disable-owl-nothing  \u003cbool\u003e\n        Disable inference of unsatisfiable classes by the whelk reasoner (default false)\n  --prefixes  \u003cfilename\u003e\n        Prefix mappings to use for TSV output (YAML dictionary\n  --obo-prefixes  \u003cbool\u003e\n        Compact OBO-style IRIs regardless of inclusion in prefixes file\n  --verbose  \u003cbool\u003e\n        Set log level to INFO\n```\n\n## Build\nInstall `sbt` (Scala Build Tool) on your system. For Mac OS X, it is easily done using [Homebrew](http://brew.sh):  `brew install sbt`. `sbt` requires a working Java installation, but you do not need to otherwise install Scala.\n\nAfter `sbt` is installed, run `sbt stage` to create the executable. The executable is created in your `cli/target/universal/stage/bin` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Frelation-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincatools%2Frelation-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Frelation-graph/lists"}