forked from datacontract/datacontract-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDF Export: Fix if owner is not a URI
- Loading branch information
1 parent
39059f8
commit 0610d1a
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ id: orders-unit-test | |
info: | ||
title: Orders Unit Test | ||
version: 1.0.0 | ||
owner: urn:acme:checkout | ||
owner: checkout | ||
contact: | ||
email: [email protected] | ||
url: https://wiki.example.com/teams/checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
|
||
from datacontract.cli import app | ||
from datacontract.export.rdf_converter import to_rdf | ||
from datacontract.model.data_contract_specification import DataContractSpecification | ||
from datacontract.model.data_contract_specification import \ | ||
DataContractSpecification | ||
|
||
logging.basicConfig(level=logging.DEBUG, force=True) | ||
|
||
|
@@ -44,7 +45,7 @@ def test_to_rdf(): | |
dcx:email "[email protected]" ; | ||
dc1:url "https://wiki.example.com/teams/checkout" ] ; | ||
dc1:description "None" ; | ||
dc1:owner <urn:acme:checkout> ; | ||
dc1:owner "checkout" ; | ||
dc1:title "Orders Unit Test" ; | ||
dc1:version "1.0.0" ] ; | ||
dc1:model <https://example.com/orders> ; | ||
|
@@ -140,7 +141,7 @@ def test_to_rdf_complex(): | |
dc1:url "https://teams.microsoft.com/l/channel/acme/checkout" ] ; | ||
dc1:description \"\"\"Successful customer orders in the webshop. All orders since 2020-01-01. Orders with their line items are in their current state (no history included). | ||
\"\"\" ; | ||
dc1:owner <urn:acme:CheckoutTeam> ; | ||
dc1:owner "urn:acme:CheckoutTeam" ; | ||
dc1:title "Orders Latest" ; | ||
dc1:version "1.0.0" ] ; | ||
dc1:model <line_items>, | ||
|