Skip to content

Commit

Permalink
doc: wrong mapping of collection.name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrremann authored and jeffreiffers committed Sep 5, 2023
1 parent f570ee9 commit db7c4d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ from concepttordf import Collection, Concept, Definition
# Create collection object
collection = Collection()
collection.identifier = "http://example.com/collections/1"
collection.name = {"en": "A concept collection"}
collection.name = {"nb": "En begrepssamling"}
collection.name = {"en": "A concept collection",
"nb": "En begrepssamling"}
collection.publisher = "https://example.com/publishers/1"

# Create a concept:
Expand Down Expand Up @@ -63,7 +63,8 @@ Will print the concept according to the specification:
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/collections/1> a skos:Collection ;
rdfs:label "En begrepssamling"@nb ;
rdfs:label "En begrepssamling"@nb,
"A concept collection"@en ;
dct:publisher <https://example.com/publishers/1> ;
skos:member <http://example.com/concepts/1> .

Expand Down

0 comments on commit db7c4d9

Please sign in to comment.