Пример #1
0
 internal SupportedCollection(
     Uri memberId, SupportedCollectionAttribute supportedCollectionAttribute)
 {
     Description     = supportedCollectionAttribute.Description;
     Id              = supportedCollectionAttribute.Id;
     MemberAssertion = new MemberAssertion(@object: memberId, property: new Uri(Rdf.Type));
     Title           = supportedCollectionAttribute.Title;
 }
Пример #2
0
 internal SupportedCollection(
     Uri memberId,
     SupportedCollectionAttribute supportedCollectionAttribute,
     string contextPrefix)
 {
     Description     = supportedCollectionAttribute.Description;
     Id              = new Uri($"{contextPrefix}:{supportedCollectionAttribute.Id}");
     MemberAssertion = new MemberAssertion(@object: memberId, property: new Uri(Rdf.Type));
     Title           = supportedCollectionAttribute.Title;
     Types           = new[] { "Collection" };
 }