@prefix void:    <http://rdfs.org/ns/void#> .
@prefix dcat:    <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix prov:    <http://www.w3.org/ns/prov#> .
@prefix raras:   <https://raras.org/id/> .
@prefix rn:      <https://raras.org/resource/> .
@prefix rnc:     <https://raras.org/class/> .

# ──────────────────────────────────────────────────────────────────
# VOID Dataset Description
# ──────────────────────────────────────────────────────────────────

<https://raras.org/dataset/raras> a void:Dataset, dcat:Dataset ;
  dcterms:title "Raras — Brazilian Rare Disease Knowledge Graph"@en ;
  dcterms:title "Raras — Grafo de Conhecimento Brasileiro de Doenças Raras"@pt ;
  dcterms:description "FAIR-compliant knowledge graph of rare diseases integrating Orphanet, HPO, OMIM, MONDO, ClinVar, DATASUS, ClinicalTrials.gov, PubMed, and Brazilian SUS data (CEAF, SIGTAP, PNTN, PCDT). Continuously verified against official sources and kept up to date by autonomous per-disease "Disease Twin" agents — auditable, with per-release provenance and fingerprinting."@en ;
  dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
  dcterms:publisher <https://raras.org> ;
  dcterms:creator "Raras Health Ltda" ;
  dcterms:rights "Raras-originated triples are dedicated to the public domain under CC0 1.0. The combined dataset and bulk dump are distributed under CC-BY 4.0 because they embed Orphanet, HPO and MONDO (CC-BY 4.0); reuse requires attribution to Raras (https://raras.org). OMIM identifiers only — no OMIM descriptive text is redistributed."@en ;
  dcterms:source <https://raras.org> ;
  dcterms:modified "2026-05-21"^^xsd:date ;
  owl:versionInfo "1.0.0" ;
  foaf:homepage <https://raras.org> ;

  # FAIR identifiers
  void:uriSpace "https://raras.org/id/" ;
  void:exampleResource <https://raras.org/id/D00166> ;

  # Statistics
  void:triples 243504 ;
  void:entities 27814 ;
  void:classes 8 ;
  void:properties 45 ;

  # Classes described
  void:classPartition [
    void:class rnc:Disease ;
    void:entities 10468 ;
  ] ;
  void:classPartition [
    void:class rnc:Phenotype ;
    void:entities 11652 ;
  ] ;
  void:classPartition [
    void:class rnc:Gene ;
    void:entities 5571 ;
  ] ;
  void:classPartition [
    void:class rnc:Medication ;
    void:entities 123 ;
  ] ;
  void:classPartition [
    void:class rnc:ReferenceCenter ;
    void:entities 81 ;
  ] ;
  void:classPartition [
    void:class rnc:ClinicalTrial ;
    void:entities 505 ;
  ] ;
  void:classPartition [
    void:class rnc:Paper ;
    void:entities 5539 ;
  ] ;
  void:classPartition [
    void:class rnc:Community ;
    void:entities 10471 ;
  ] ;

  # Endpoints
  void:sparqlEndpoint <https://raras.org/api/sparql> ;
  void:dataDump <https://raras.org/api/downloads> ;

  # Linksets — cross-references to external datasets
  void:subset [
    a void:Linkset ;
    void:target <http://www.orpha.net/ORDO/> ;
    void:linkPredicate owl:sameAs ;
    dcterms:description "owl:sameAs links to Orphanet ORDO" ;
  ] ;
  void:subset [
    a void:Linkset ;
    void:target <http://purl.obolibrary.org/obo/mondo.owl> ;
    void:linkPredicate owl:sameAs ;
    dcterms:description "owl:sameAs links to MONDO Disease Ontology" ;
  ] ;
  void:subset [
    a void:Linkset ;
    void:target <http://purl.obolibrary.org/obo/hp.owl> ;
    void:linkPredicate <https://raras.org/property/hasPhenotype> ;
    dcterms:description "Disease-phenotype associations via HPO" ;
  ] ;
  void:subset [
    a void:Linkset ;
    void:target <https://omim.org/> ;
    void:linkPredicate owl:sameAs ;
    dcterms:description "owl:sameAs links to OMIM" ;
  ] ;
  void:subset [
    a void:Linkset ;
    void:target <http://www.wikidata.org/> ;
    void:linkPredicate owl:sameAs ;
    dcterms:description "owl:sameAs links to Wikidata" ;
  ] ;

  # Provenance
  prov:wasGeneratedBy [
    a prov:Activity ;
    rdfs:label "RarasNet enrichment pipeline" ;
    prov:used <http://www.orpha.net>, <http://purl.obolibrary.org/obo/hp.owl>,
              <https://clinicaltrials.gov>, <https://pubmed.ncbi.nlm.nih.gov>,
              <https://datasus.saude.gov.br> ;
  ] .

# ──────────────────────────────────────────────────────────────────
# DCAT Distributions
# ──────────────────────────────────────────────────────────────────

<https://raras.org/dataset/raras/sparql> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/sparql> ;
  dcterms:format "application/sparql-results+json" ;
  dcterms:title "SPARQL 1.1 Endpoint" .

<https://raras.org/dataset/raras/rdf> a dcat:Distribution ;
  dcat:downloadURL <https://raras.org/api/rdf?format=turtle> ;
  dcterms:format "text/turtle" ;
  dcterms:title "RDF Export (Turtle)" .

<https://raras.org/dataset/raras/jsonld> a dcat:Distribution ;
  dcat:downloadURL <https://raras.org/api/rdf?format=jsonld> ;
  dcterms:format "application/ld+json" ;
  dcterms:title "RDF Export (JSON-LD)" .

<https://raras.org/dataset/raras/beacon> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/beacon> ;
  dcterms:format "application/json" ;
  dcterms:title "GA4GH Beacon v2 API" .

<https://raras.org/dataset/raras/phenopackets> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/phenopackets> ;
  dcterms:format "application/json" ;
  dcterms:title "GA4GH Phenopackets v2" .

<https://raras.org/dataset/raras/fhir> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/fhir/export> ;
  dcterms:format "application/fhir+json" ;
  dcterms:title "FHIR R4 Bundle" .

<https://raras.org/dataset/raras/mcp> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/mcp> ;
  dcterms:format "application/json" ;
  dcterms:title "Model Context Protocol (MCP) Server" .

<https://raras.org/dataset/raras/graphql> a dcat:Distribution ;
  dcat:accessURL <https://raras.org/api/graphql> ;
  dcterms:format "application/json" ;
  dcterms:title "GraphQL API (Biolink-aligned)" .

<https://raras.org/dataset/raras/dump> a dcat:Distribution ;
  dcat:downloadURL <https://raras.org/api/downloads?format=ntriples> ;
  dcterms:format "application/n-triples" ;
  dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
  dcterms:rights "Attribution required: cite Raras (https://raras.org)." ;
  dcterms:title "Full N-Triples dump (CC-BY 4.0)" .

# ──────────────────────────────────────────────────────────────────
# Publisher
# ──────────────────────────────────────────────────────────────────

<https://raras.org> a foaf:Organization ;
  foaf:name "Raras Health Ltda" ;
  foaf:homepage <https://raras.org> .
