Skip to content

Commit

Permalink
More abstraction of RDFFacet
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco De Salvo committed May 27, 2024
1 parent a9e3722 commit 69868e1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions RDFSharp/Model/RDFFacet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,20 @@ public abstract class RDFFacet
/// <summary>
/// Builds a facet by initializing its blank URI
/// </summary>
public RDFFacet()
internal RDFFacet()
=> URI = new RDFResource();
#endregion

#region Methods
/// <summary>
/// Validates the given literal against the facet
/// </summary>
public virtual bool Validate(string literalValue)
=> false;
public abstract bool Validate(string literalValue);

/// <summary>
/// Gives a graph representation of the facet
/// </summary>
public virtual RDFGraph ToRDFGraph()
=> null;
public abstract RDFGraph ToRDFGraph();
#endregion
}
}

0 comments on commit 69868e1

Please sign in to comment.