rdf/base/idl/nsIRDFInferDataSource.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rdf/base/idl/nsIRDFInferDataSource.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIRDFDataSource.idl"
    1.10 +
    1.11 +/**
    1.12 + * An nsIRDFInferDataSource is implemented by a infer engine. This
    1.13 + * engine mimics assertions in addition to those in the baseDataSource
    1.14 + * according to a particular vocabulary.
    1.15 + * Infer engines have contract IDs in the form of
    1.16 + * "@mozilla.org/rdf/infer-datasource;1?engine="
    1.17 + */
    1.18 +
    1.19 +[scriptable, uuid(2b04860f-4017-40f6-8a57-784a1e35077a)]
    1.20 +interface nsIRDFInferDataSource : nsIRDFDataSource {
    1.21 +    /**
    1.22 +     *
    1.23 +     * The wrapped datasource.
    1.24 +     *
    1.25 +     * The InferDataSource contains all arcs from the wrapped
    1.26 +     * datasource plus those infered by the vocabulary implemented
    1.27 +     * by the InferDataSource.
    1.28 +     */
    1.29 +    attribute nsIRDFDataSource baseDataSource;
    1.30 +};
    1.31 +

mercurial