Skip to content

Commit

Permalink
Document iris
Browse files Browse the repository at this point in the history
This patch adds documentation for the `iris` value generated from an
RDFS or OWL vocabulary.
  • Loading branch information
pniedzielski committed Mar 20, 2024
1 parent f5d15d8 commit 61bb2f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Data/RDF/Vocabulary/Generator/VocabularyGenerator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ declareIRI name iri =
declareIRIs :: [Name] -> Q Dec
declareIRIs names =
let iriList = ListE (VarE <$> names)
in funD (mkName "iris") [return $ Clause [] (NormalB iriList) []]
in funD_doc (mkName "iris") [return $ Clause [] (NormalB iriList) []]
(Just $ "All IRIs in this vocabulary.")
[Nothing]

-- namespace = mkPrefixedNS "ogit" "http://www.purl.org/ogit/"
declarePrefix :: Name -> Text -> Text -> Q Dec
Expand Down

0 comments on commit 61bb2f6

Please sign in to comment.