mdesalvo / RDFSharp

Lightweight and friendly .NET library for realizing Semantic Web applications
Apache License 2.0
121 stars 26 forks source link

RDFOntologyFact within RDFOntologyData #236

Closed constnick closed 3 years ago

constnick commented 3 years ago

I need to know whether an instance of RDFOntologyData contains the given instance of RDFOntologyFact. There is SelectFact method which requires a string, but it would be better and faster in some cases to use ID or the instance itself, without redundant string operations. Maybe a public method just checking the internal dictionary Facts would be useful?

mdesalvo commented 3 years ago

Sure. An overload of SelectFact taking the ID is quicker.