pub fn profile_card(owner: &DidNostr) -> StringExpand description
Returns the profile document for owner, exactly as the client writes
it.
It is Turtle with one subject, <#me>, typed foaf:Person, and one
further statement, owl:sameAs, naming the owner’s did:nostr
identifier. owl:sameAs is the back-link the pod server’s own
did:nostr resolver looks for. The text ends with a newline.
§Examples
use stratum_node_core::{card_names_owner, profile_card, DidNostr};
let owner = DidNostr::from_hex("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")?;
let card = profile_card(&owner);
assert!(card.contains(&format!("owl:sameAs <{owner}>")));
assert!(card_names_owner(card.as_bytes(), &owner));